Skip to content

Instantly share code, notes, and snippets.

Edward Thomson ethomson

Block or report user

Report or block ethomson

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
View mirror.sh
#!/bin/sh
set -eufo pipefail
if [ "$#" -ne 2 ]; then
echo "usage: $0 source_repo_url target_repo_url" >&2
exit 1
fi
SOURCE_URL="$1"
@ethomson
ethomson / rewrite-lg2s.sh
Created Oct 21, 2016 — forked from carlosmn/rewrite-lg2s.sh
An extremely case-specific implementation of git-filter-branch
View rewrite-lg2s.sh
#!/bin/bash
# It's no libgit2, but it's pretty useful
. $(git --exec-path)/git-sh-setup
cd_to_toplevel
require_clean_work_tree
set -e
View dotfiles.sh
#!/bin/sh
set -e
# clone a bare repository, because even with `--no-checkout`, clone will create a
# folder for a working directory, and it will ignore the `--git-dir` option.
# but the restore all the configuration that would be there.
git clone --bare git@github.com:/ethomson/dotfiles .dotfiles.git
git --git-dir=.dotfiles.git config core.bare false
git --git-dir=.dotfiles.git config push.default simple
View keybase.md

Keybase proof

I hereby claim:

  • I am ethomson on github.
  • I am ethomson (https://keybase.io/ethomson) on keybase.
  • I have a public key whose fingerprint is 3D70 FAC9 2328 2E35 0E6B D074 9526 1E36 403C 1FC0

To claim this, I am signing this object:

You can’t perform that action at this time.