Skip to content

Instantly share code, notes, and snippets.

View nickvanw's full-sized avatar

Nick Van Wiggeren nickvanw

View GitHub Profile
@nickvanw
nickvanw / main.go
Created August 23, 2014 01:52
Parallel URL Fetcher
package main
import (
"encoding/csv"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"strings"
"sync"
@nickvanw
nickvanw / main.go
Created August 18, 2014 00:13
FiSH DH1080 in Go
package main
import (
"crypto/cipher"
"crypto/rand"
"crypto/sha1"
"encoding/base64"
"errors"
"fmt"
"math/big"
### Keybase proof
I hereby claim:
* I am nickvanw on github.
* I am nickvanw (https://keybase.io/nickvanw) on keybase.
* I have a public key whose fingerprint is 9549 9ACC 64DE 7476 0624 2871 67A9 7259 F9FC 4628
To claim this, I am signing this object:
@nickvanw
nickvanw / dotdeb.sh
Last active August 29, 2015 14:00
Dotdeb Install Script
#!/bin/bash
OFFICIAL_DOTDEB="http://packages.dotdeb.org"
APT_FOLDER="/etc/apt/sources.list.d/"
DOTDEB_FILE="dotdeb.list"
# Make sure we're running this as root!
if [[ $UID -ne 0 ]]; then
echo "$0 must be run as root"
exit 1
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;
application/atom+xml atom;
application/rss+xml rss;
@nickvanw
nickvanw / dd.sh
Last active August 29, 2015 13:57
#!/bin/bash
# Save this script somewhere (chmod it 777) and add this to cron:
# 0 */2 * * * cd ~; dd.sh
#
# There are some configuration variables to change below these comments
#
# You'll want to set where the dd command prints to, as well as what command it runs
#