Skip to content

Instantly share code, notes, and snippets.

@cgansen
cgansen / randstring.sh
Created January 31, 2017 23:31
randstring - generate a random string of alphanumeric characters from /dev/urandom
#!/bin/bash
cat /dev/urandom | env LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
@cgansen
cgansen / gist:ba018bb721873061a512
Created July 28, 2014 15:50
Jeff Bezos 1997 Letter to Amazon Shareholders
To our shareholders:
Amazon.com passed many milestones in 1997: by year-end, we had served more than 1.5 million customers, yielding 838% revenue growth to $147.8 million, and extended our market leadership despite aggressive competitive entry.
But this is Day 1 for the Internet and, if we execute well, for Amazon.com. Today, online commerce saves customers money and precious time. Tomorrow, through personalization, online commerce will accelerate the very process of discovery. Amazon.com uses the Internet to create real value for its customers and, by doing so, hopes to create an enduring franchise, even in established and large markets.
We have a window of opportunity as larger players marshal the resources to pursue the online opportunity and as customers, new to purchasing online, are receptive to forming new relationships. The competitive landscape has continued to evolve at a fast pace. Many large players have moved online with credible offerings and have devoted substantial energy and resources t

Keybase proof

I hereby claim:

  • I am cgansen on github.
  • I am cgansen (https://keybase.io/cgansen) on keybase.
  • I have a public key whose fingerprint is 9DC3 7DF5 0AF1 FD2F 5DCE 7BA4 AD2A 74BB 1E60 73F5

To claim this, I am signing this object:

$ curl -v -L -I http://wp.allowed.org
* About to connect() to wp.allowed.org port 80 (#0)
* Trying 5.12.75.108...
* connected
* Connected to wp.allowed.org (5.12.75.108) port 80 (#0)
> HEAD / HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8y zlib/1.2.5
> Host: wp.allowed.org
> Accept: */*
>
package main
import (
"encoding/csv"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cgansen
cgansen / simplified-wards.geojson
Created September 6, 2013 01:54
Simplified Chicago Ward Boundaries as GeoJSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
puts "hello, world!"