Skip to content

Instantly share code, notes, and snippets.

View md5's full-sized avatar

Mike Dillon md5

  • Southern California
  • 00:52 (UTC -07:00)
View GitHub Profile
@md5
md5 / nil_to_query_test.rb
Last active March 7, 2017 01:19
Rails NilClass#to_query(key) test
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
gem "rails", github: "rails/rails"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2.2.4
@md5
md5 / README.md
Last active January 6, 2016 03:27 — forked from mbostock/.block
Loxodrome

Loxodrome/rhumb lines

@md5
md5 / 00_README.md
Last active December 19, 2015 06:52
Docker SecureRandom test

Instructions

$ git clone https://gist.github.com/de5cea7195d757582621.git docker-java-secure_random-test
$ cd docker-java-secure_random-test
$ docker build -t local/java-secure_random-test .
$ docker run --rm -it local/java-secure_random-test
@md5
md5 / keybase.md
Created November 22, 2015 02:10
keybase.md

Keybase proof

I hereby claim:

  • I am md5 on github.
  • I am mrdillon (https://keybase.io/mrdillon) on keybase.
  • I have a public key whose fingerprint is 394C A189 DF91 2FF8 A152 90F6 37F1 72E8 EC6F 732C

To claim this, I am signing this object:

begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
if ENV['RAILS_VERSION']
@md5
md5 / .gitignore
Last active February 28, 2024 04:51
jwilder/nginx-proxy using Compose + Swarm + Machine
/*.env
@md5
md5 / Dockerfile
Last active August 1, 2023 14:41
Testing docker-php-ext-install sockets
FROM php
RUN docker-php-ext-install sockets
COPY test.php /
CMD ["php", "/test.php"]
@md5
md5 / .00_README.md
Last active August 28, 2015 04:42
Helper script to ensure that Bash 4 and GNU tools are used on OS X

This helper script can be sourced at the top of another Bash script to ensure that it runs under Bash 4 with GNU grep, readline, sed, and zcat.

It should be sourced in your script like this, before the part of the script that uses Bash 4 features or expects GNU tools:

source .ensure-bash4+gnu-tools.bash "$BASH_SOURCE" "$@"