Build Azure LoadBalancer by Terraform
To create an Internal Load Balancer (ILB) in Azure using Terraform, you need to define the necessary resources in a Terraform configuration file. Below is an example of how you can achieve this based on the details you provided.
Download music from Youtube music with volume normalization
- the normalized music is named with a suffix .2.m4a
Enable Auto Update for security On RHEL
Enable DHCP Server on Mac
There's a build-in DHCP server on Mac, which can be enabled with following steps:
Enable GPU access in docker and docker-compose
Follow the reference to allow Docker access GPU//docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html
Find nodes whose availability is under a certain threshold in SWQL
the result may be largely different from the result from the web-gui
Generate availability report of last month on SolarWinds
Git Tips
- Overwrite local files forcefully
How do you get and use a Refresh Token for the Dropbox API (Python 3.x)
1. Replace `` with your dropbox app key in the below Authorization URL
How to add rundeck user to a Linux server
Add user rundeck
How to build a router with Raspberry PI
The tutorial will build a router with Raspberry PI 3B, where the build-in Wifi and ethernet ports are LAN ports and a usb dongle D-link DWA-171 for connecting to Internet
How to check if a variable is set in Bash
where ${var+x} is a parameter expansion which evaluates to nothing if var is unset, and substitutes the string x otherwise.
How to combine 2 search results in Splunk
Use append
How to enable auto-update and -reboot on Windows 2016
1. Log in as a local administrator
How to find an IP on ACI
- on GUI, Operations -> EP Tracker
How to find shared lines in the last n days across n files
How to find which process has occupied a specific port
netstat
How to generate a self-signed SSL certificate using OpenSSL
As of 2023 with OpenSSL ≥ 1.1.1
How to setup a local dev environment in Airflow
The concept is showing as following
How to setup Grafana with unsigned plugin in Docker
1. Install Docker
How to setup NetScaler to monitor HTTP page
- Traffic Management \> Load Balancing \> Services , create a service, and specify the protocol as SSL . Click OK .
How to test NAT translation on Palo Alto Firewall
Similar to firewall policy test on Palo Alto, use the following command to test which NAT translation policy is matched.
How to use a more complex data type for typehint in python
Here's an example of how you can use type hints to specify a particular structure for JSON data:
How to use Charles to intercept the network app
1. Buy the app, or some settings aren't available
Let's Encrypt with Gunicorn
1. Install certbot
Limit WSL memory
Create a file in the user folder %UserProfile%\\.wslconfig
List files recursively for a certain type
loop through lines in a variable
Multi-Abstraction-Layer Topology (MALT) Modelling
In the video, the presenter only showed examples of L2 & L3 modelling. This is also confirmed in its paper, which states that
Python Tips
bytes and str conversion in Python
RDP through bastion on Azure
This is for Windows only
Re-install WSL on Windows 10
The following is a direct copy of the original gist in case it's offline.
Reboot vmanage
1. Log into the device
Steps of Updating NetScaler
NetScalers are running in Active/Standby mode, the update should be scheduled in two days for each pair in case there is an issue that requires an immediate rollback.
VirtualBox Mount Shared Folder
Similar to VMWare Fusion 10 Mount Shared Folder, the shared folder may not work in a guest machine.
VMWare Fusion 10 Mount Shared Folder
The shared folder feature in VMware Fusion 10 for MacOS doesn’t function properly, as the shared folder doesn’t appear in the guest system, particularly in Linux systems.
列出 Mac 上所有的 USB 设备
如何在RHEL 7 上用fastnetmon和pmacct采集NetFlow
最近由于苦于公司已有的监控系统存在太多的问题,各种流程又太过缓慢,所以干脆考虑自己从头建一套新的监控,在大家还没从官僚的流程中反应过来的时候直接用既成事实来代替整个流程。😊