I hereby claim:
- I am anorm on github.
- I am anorm (https://keybase.io/anorm) on keybase.
- I have a public key whose fingerprint is BFC1 5646 43B7 183D E35F 186D 10D7 1170 06BD 7AA0
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# From https://askubuntu.com/questions/401581/bash-one-liner-to-delete-only-old-kernels | |
dpkg -l linux-{image,headers}-* | awk '/^ii/{print $2}' | egrep '[0-9]+\.[0-9]+\.[0-9]+' | grep -v $(uname -r | cut -d- -f-2) | xargs sudo apt-get -y purge |
#!/bin/bash | |
echo 1 > /proc/sys/net/ipv4/ip_forward | |
WAN=enp0s3 | |
LAN=enp0s8 | |
iptables -t nat -A POSTROUTING -o $WAN -j MASQUERADE | |
iptables -A FORWARD -i $WAN -o $LAN -m state --state RELATED,ESTABLISHED -j ACCEPT | |
iptables -A FORWARD -i $LAN -o $WAN -j ACCEPT |
#!/bin/bash | |
# | |
# Inspired by question/answers/comments at | |
# http://stackoverflow.com/questions/3316677/apt-get-update-dist-upgrade-autoremove-autoclean-in-a-single-sudo-command | |
# | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 |
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("listen.tidalhifi.com") { | |
body { | |
background:#ddd; | |
color:#111 | |
} | |
[class^="icon-"], [class*=" icon-"] { |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
PID=$1 | |
function log() | |
{ | |
echo $(date) $@ | |
} | |
lastsize=0 | |
lastresident=0 |
#include <boost/bind.hpp> | |
#include <boost/function.hpp> | |
#include <sstream> | |
using namespace std; | |
template<class T1> | |
T1 parse(string arg) | |
{ | |
istringstream iss(arg); |
namespace cpp RPC | |
service FooService | |
{ | |
i32 foo(1: i32 param1); | |
} |