Skip to content

Instantly share code, notes, and snippets.

View Gussi's full-sized avatar
📍
Staðsettur

Gunnsteinn Þórisson Gussi

📍
Staðsettur
View GitHub Profile
BEGIN MESSAGE.
aG4HI9h2yRvwaHr D0NtE7Qr73UL1jH 9B5GoXpvtXFAuYo N9aUneR5QyG2p9G
BNYYoNayddy0uOJ RJtIaMiblxhTCKq 6Xr2MZHgg7CGSZt 1fbiHa9K6GOoiOc
BBa5ueS3SNlOY3g 291NihNReEIpAly jJ3PCIPSUJp5JTo 2TcoH60Cfitf8JP
BTn9yI978IqNUSf zCaIfuA0qL4itRi JcRLx.
END MESSAGE.
@Gussi
Gussi / make_favicon.sh
Last active May 22, 2017 16:35 — forked from nateware/make_favicon.sh
Imagemagick to create favicon.ico with 16x16 and 32x32 sizes in it
#!/bin/sh
# Generate bunch of favicons
if [ $# -ne 1 ]; then
echo USAGE: $0 favicon-original.png
exit 1
fi
ORIGINAL=$1
### Keybase proof
I hereby claim:
* I am Gussi on github.
* I am gussi (https://keybase.io/gussi) on keybase.
* I have a public key whose fingerprint is E6BD 0541 090C 7078 C82A 04C4 6936 1837 7B9A 7058
To claim this, I am signing this object:
<?php
$total = 0;
foreach (file('http://www.rix.is/is-net.txt') as $net) {
list(, $mask) = explode('/', $net);
$total += pow(2, 32-$mask);
}
printf("%d ips allocated\n", $total);