This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#use awk to output history commands without the numbers | |
awk '{print $2,$3,$4,$5,$6,$7}' history.txt >> commands.txt | |
#get the ip addresses https://www.cyberciti.biz/tips/read-unixlinux-system-ip-address-in-a-shell-script.html | |
ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}' | |
#get private and public IP for linode node via CLI (old version) https://github.com/linode/cli | |
linode show linodenode| grep ips | awk '{ print $2,$3}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/speed47/spectre-meltdown-checker.git | |
cd spectre-meltdown-checker/ | |
sudo sh spectre-meltdown-checker.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List virtual machines | |
VBoxManage list vms | |
"MyVM" {wwwwww-4301-4a7d-8af8-fe02fed00451} | |
# Start VM in headless mode | |
VBoxManage startvm MyVM --type headless | |
# Power off VM | |
VBoxManage controlvm MyVM poweroff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#rc.firewall | |
# | |
# | |
# Firewall configuration file. | |
# | |
# | |
# AUTHOR: José Lopes Oliveira Jr. <indiecode.com.br> | |
# | |
# |
NewerOlder