Hi,
What are the dynamic IP ranges used by AWS in Ireland for the EC2 service?
$ curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.p[......]
OpenSource software should be encouraged more…
Hi,
What are the dynamic IP ranges used by AWS in Ireland for the EC2 service?
$ curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.p[......]
When dealing with hardware, you often see messages in the logs about disk issues or warnings.
Messages like:
ata9: hard resetting link
ata9: SATA[......]
Somebody had the brilliant idea to use Unix timestamps in the Squid log.
I suppose this makes it easy to parse, not so easy to read for us humans tho[……]
You can achieve the same result with other (more powerful) tools, but I like this approach because it’s the simplest I can think of.
Let’s say you[……]
I had to make some modifications to several BIND zone files, sed proved itself invaluable once again!
All the zone files looked something like this[……]
Sometimes when creating one-liners, when the source is not “clean”, you may end up with non-ascii characters which make the parsing harder.
To get[……]
for docker in $(docker images|awk '{print $1,$2}'|sed 's/ /:/g'|grep -v REPOSITORY); do docker pull $docker; done
This command updates all your[……]
sudo pip install -U `pip list -o|cut -d ' ' -f1|tr '\n' ' '`
NB: One liners are potentially destructive. Don’t run anything unless you fully un[……]
array_unique removes duplicate values from an array. Unfortunately it doesn’t work with multi-dimensional arrays.
A quick workaround is to serializ[……]