Skip to content

Instantly share code, notes, and snippets.

View kidoman's full-sized avatar

Karan Misra kidoman

View GitHub Profile
@kidoman
kidoman / generate.go
Last active December 22, 2015 08:09
Generate n random data files of given size
package main
import (
"crypto/rand"
"crypto/sha1"
"encoding/hex"
"flag"
"fmt"
"io"
"io/ioutil"
@kidoman
kidoman / htpasswd-ssha.sh
Created January 16, 2013 10:24
htpasswd-ssha script fixed to work in Ubuntu 12.04 Must run before using this script: sudo apt-get install libdigest-sha-perl sudo apt-get install libterm-readkey-perl
#!/usr/bin/perl
#########################################################################
# htpasswd-ssha is a replacement of the well known apache htpasswd.
# All written in pure perl, it allows you to crypt SSHA passowrd for
# nginx per example.
#
# Copyright (C) 2011 Guillaume Seigneuret (Omega Cube)
#
# This program is free software: you can redistribute it and/or modify
@kidoman
kidoman / .rbenv-version
Created October 31, 2012 01:58
A simple ruby wrapper script over OpenSSL to assist in encryption/decryption using your RSA keys (id_rsa/id_rsa.pub will do just fine)
1.9.3-p286
@kidoman
kidoman / appengine_tls.go
Created December 14, 2014 19:48
Using custom certificates with AppEngine
package main
import (
"crypto/tls"
"crypto/x509"
"io/ioutil"
"net"
"net/http"
"appengine"
@kidoman
kidoman / gaesocket.go
Created September 23, 2014 03:52
Whats wrong with this?
package web
import (
"io"
"net"
"net/http"
"appengine"
"appengine/socket"
)
@kidoman
kidoman / results.md
Last active August 29, 2015 14:01
fibrous run results on a Late 2013 (i7 Haswell 2.3 Ghz 16 GB) MacBook Pro 15 Retina