Skip to content

Instantly share code, notes, and snippets.

View richardkmiller's full-sized avatar

Richard K. Miller richardkmiller

View GitHub Profile

Keybase proof

I hereby claim:

  • I am richardkmiller on github.
  • I am richardkmiller (https://keybase.io/richardkmiller) on keybase.
  • I have a public key whose fingerprint is 2847 E209 5430 9450 E141 9FA9 2FBE E1B5 1181 9B13

To claim this, I am signing this object:

@richardkmiller
richardkmiller / gist:9878897
Created March 30, 2014 20:06
New server setup
/etc/hosts
/etc/hostname
apt-get upgrade
adduser richard -G sudo
.ssh/authorized_keys
/etc/ssh/sshd_config -- RootLogin No
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E5267A6C
@richardkmiller
richardkmiller / find_mixed_content.js
Last active December 22, 2015 19:19
Weed out those pesky "mixed content warnings" found in IE and Firefox
#!/usr/bin/env phantomjs
var page = require('webpage').create();
var args = require('system').args;
if (args.length === 1) {
console.log('Please specify the URL to an SSL page.');
phantom.exit(1);
}
page.onResourceReceived = function (response) {
if (response.stage == "start") {
if (response.url.substr(0, 8) !== "https://" && response.url.substr(0, 5) !== "data:") {
@richardkmiller
richardkmiller / .gitconfig
Created June 17, 2013 17:45
my .gitconfig file
[alias]
st = status
co = checkout
ci = commit
cp = cherry-pick
br = branch
sub = submodule
pl = pull
ps = push
tree = log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
@richardkmiller
richardkmiller / law-firm-name-generator.rb
Created November 27, 2011 02:11
Law Firm Name Generator
#!/usr/bin/env ruby
firm_name = 3.times.collect{ %w{Alston Baker Bird Day Gates Hostetler Jones Snell Vargas Wilmer}.sample }.to_sentence