Skip to content

Instantly share code, notes, and snippets.

James Mead floehopper

Block or report user

Report or block floehopper

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@floehopper
floehopper / update-git-author-date-and-commiter-date-to-current-time.sh
Created Nov 11, 2018
Update git author-date and committer-date to current time with 1 second delay between commits
View update-git-author-date-and-commiter-date-to-current-time.sh
git filter-branch --env-filter 'export GIT_COMMITTER_DATE="$(date)"; export GIT_AUTHOR_DATE="$(date)"; sleep 1' master..HEAD
@floehopper
floehopper / Gemfile
Last active Nov 10, 2018
Mocha issue 349
View Gemfile
source 'https://rubygems.org'
gem 'minitest'
gem 'mocha'
@floehopper
floehopper / docker-build-output.txt
Created Oct 24, 2018
Build and run docker image for Ruby v2.5.3 on Ubuntu 14.04
View docker-build-output.txt
aws-codebuild-docker-images/ubuntu/ruby/2.5.3 $ docker build -t aws/codebuild/ruby:2.5.3 .
Sending build context to Docker daemon 10.24kB
Step 1/13 : FROM ubuntu:14.04.5
---> 132b7427a3b4
Step 2/13 : ENV DOCKER_BUCKET="download.docker.com" DOCKER_VERSION="17.09.0-ce" DOCKER_CHANNEL="stable" DOCKER_SHA256="a9e90a73c3cdfbf238f148e1ec0eaff5eb181f92f35bdd938fd7dab18e1c4647" DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" DOCKER_COMPOSE_VERSION="1.21.2" GITVERSION_VERSION="3.6.5"
---> Using cache
---> b8af7e6d7dc8
Step 3/13 : RUN set -ex && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/99use-gzip-compression && apt-get update && apt install -y apt-transport-https && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | tee /etc/apt/sources.list.d/mono-official-stable.list && apt-get update && apt-
@floehopper
floehopper / install.sh
Created Aug 8, 2018
Installing (and building native extensions for) RedCloth gem on Ruby v1.8.7
View install.sh
bundle config --local build.RedCloth --with-cflags="-w"
bundle install
@floehopper
floehopper / install.sh
Last active Aug 8, 2018
Installing Ruby v1.8.7 on OSX High Sierra using rbenv
View install.sh
brew install gcc@4.9
export RUBY_CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl`
export CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl`
rbenv install 1.8.7-p375
@floehopper
floehopper / Gemfile
Last active Jun 22, 2018
Mocha issue 329
View Gemfile
source 'https://rubygems.org'
gem 'rspec'
View keybase.md

Keybase proof

I hereby claim:

  • I am floehopper on github.
  • I am floehopper (https://keybase.io/floehopper) on keybase.
  • I have a public key whose fingerprint is 7B45 F05D 5E45 180B 26B8 C9B9 0434 C9E0 037B 0884

To claim this, I am signing this object:

View encrypt-string.md
$ wget https://github.com/<username>.keys
$ ssh-keygen -e -f <username>.key -m PKCS8 > <username>.key.pkcs8
$ openssl rsautl -encrypt -pubin -inkey <username>.key.pkcs8 -in plain.txt -out encrypted.txt
@floehopper
floehopper / 2018-04-10-whitehall-code-authorship.md
Created Apr 10, 2018
GOV.UK Whitehall app code authorship
View 2018-04-10-whitehall-code-authorship.md
$ git ls-tree -r -z --name-only HEAD | xargs -0 -n1 git blame --line-porcelain HEAD | grep "^author " | sort | uniq -c | sort -nr

56161 author David Heath
24554 author Tekin Suleyman
14772 author Murray Steele
12286 author Edd Sowden
11746 author Andrew Garner
9137 author James Mead
8358 author russell thorn
@floehopper
floehopper / ddclient-help.txt
Last active Mar 28, 2018
2SS RPi dynamic DNS configuration
View ddclient-help.txt
== NIC specific variables and examples:
o 'changeip'
The 'changeip' protocol is used by DNS services offered by changeip.com.
Configuration variables applicable to the 'changeip' protocol are:
protocol=changeip ##
server=fqdn.of.service ## defaults to nic.changeip.com
login=service-login ## login name and password registered with the service
You can’t perform that action at this time.