Need to know the dynamic IP ranges used by AWS in a specific region? AWS publishes this as a JSON file.
curl -s https://ip-ranges.amazonaws.com/ip-ra[......]
OpenSource software should be encouraged more…
Need to know the dynamic IP ranges used by AWS in a specific region? AWS publishes this as a JSON file.
curl -s https://ip-ranges.amazonaws.com/ip-ra[......]
When dealing with hardware, you often see log messages like:
ata9: hard resetting link
ata9: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
To map[……]
Somebody had the brilliant idea of using Unix timestamps in Squid log files. It makes parsing easy but reading them is not so human-friendly.
This is[……]
Say you have a file called test.txt:
line 1
line 2
line 3
Remove the first line:
tail -n +2 test.txt
Remove the last line:
head -n -1 test.txt
R[……]
Sometimes when creating one-liners, the source contains non-ASCII characters that make parsing harder. To strip them all out, use Perl:
cat dirty-sou[......]
To pull the latest version of all your Docker images at once:
for docker in $(docker images | awk '{print $1,$2}' | sed 's/ /:/g' | grep -v REPOSITOR[......]
To update all your pip-installed Python packages at once:
sudo pip install -U `pip list -o | cut -d ' ' -f1 | tr '\n' ' '`
This lists outdated packa[……]