AWS CLI – List All VM Instances
Reference: https://github.com/aws/aws-cli/issues/1777
Reference: https://github.com/aws/aws-cli/issues/1777
If you create your VM with Dynamic IPs DHCP will grab the first available IP but some VMs are best on a static IP. This script below will get the existing IP of the ipconfig and reassign it to the same ipconfig as a static IP.
If you have an app that doesn’t use the internet or can’t use the internet but still want basic multi-language capability the below will help. First add some labels and buttons. In adding the buttons add it twice (once as IBOutlet and then IBAction) Create a JSON file, in my example I named mine data.json
Replace the IP addresses with your IP addresses Modify your config file to look like this When done you need to test the config You should see something like nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful Reference: https://www.nginx.com/blog/load-balancing-dns-traffic-nginx-plus/
On the Mac “lsusb -v” is rather clean in comparison to other systems.
Currently this script is developed for my Raspberry Pi (Debian, Raspbian) but in time I will have it working for RHEL (Red Hat, CentOS, Fedora). In the example above I’m checking if OpenVPN is running, if it is not running it will start the service. I set this script up as CheckOpenVPN.sh in my /opt…
The following code is for Debian 9 Stretch but should work on older Debian with minor changes
If you have ever received a list of fonts from a client where the font names didn’t make sense this code below will help. Caution: Backup your fonts directory just in case.