This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am benjojo on github. | |
* I am benjojo (https://keybase.io/benjojo) on keybase. | |
* I have a public key whose fingerprint is 2EDA 1044 EA0E 724F 21F0 FC14 AA8F D834 567F 8B8B | |
To claim this, I am signing this object: |
This file contains 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"github.com/cheggaaa/pb" | |
"io/ioutil" | |
"log" | |
"runtime" | |
"strings" |
This file contains 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
<?php | |
$files = glob('*.wma'); | |
usort($files, function($a, $b) { | |
return filemtime($a) < filemtime($b); | |
}); | |
echo('<?xml version="1.0" encoding="UTF-8"?>'); | |
?> | |
<rss version="2.0"> | |
<channel> |
This file contains 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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"net/url" | |
"strings" | |
) |
This file contains 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
import pygtk | |
pygtk.require('2.0') | |
import gtk | |
class FirstWin: | |
def __init__(self): | |
self.win = gtk.Window(gtk.WINDOW_TOPLEVEL) | |
color = gtk.gdk.color_parse('#6495ED') | |
self.win.modify_bg(gtk.STATE_NORMAL, color) | |
# To change the color again, just modify it again |
This file contains 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
/* Copyright (C) 2011-2015 P.D. Buchan ([email protected]) | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains 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
package main | |
import ( | |
"flag" | |
"github.com/tuxychandru/pubsub" | |
"golang.org/x/net/websocket" | |
"io/ioutil" | |
"net/http" | |
"strings" | |
) |
This file contains 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 | |
HOSTNAME="${COLLECTD_HOSTNAME:-ardar}" | |
INTERVAL="${COLLECTD_INTERVAL:-10}" | |
cd ~ | |
stdbuf -oL ioping -i 1 -P 10 -W -q . | while read -r line | |
do | |
min=$(echo $line | awk '{print $5}') |
This file contains 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
ben@edge# show protocols bgp | |
bgp 206924 { | |
address-family { | |
ipv6-unicast { | |
network 2a07:1500:4663::/48 { | |
} | |
} | |
} | |
neighbor 2001:470:11:a::1 { | |
description "HE BGP tunnel fucking pos" |
This file contains 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
package main | |
import ( | |
"bufio" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"strconv" |