Skip to content

Instantly share code, notes, and snippets.

View sarahhodne's full-sized avatar
🏳️‍⚧️

Sarah Hodne sarahhodne

🏳️‍⚧️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sarahhodne on github.
  • I am sarahhodne (https://keybase.io/sarahhodne) on keybase.
  • I have a public key ASA0x8qItGxXN4CBbe5vGcuA-d_SKUrACYy5m5RGnoqcZgo

To claim this, I am signing this object:

@sarahhodne
sarahhodne / github.com.js
Last active August 29, 2015 13:59
Hide +1 comments with dotjs
$(".comment-form-textarea")
.filter(function (index) {
var re = /\+1/;
return re.test($(this).val()) && $(this).val().length < 10;
)
.parents(".timeline-comment-wrapper")
.hide();
@sarahhodne
sarahhodne / sauce-connect.sh
Last active May 1, 2017 19:43
Run Sauce Connect on Travis CI
#!/bin/bash
if [ -z "${SAUCE_USERNAME}" ] || [ -z "${SAUCE_ACCESS_KEY}" ]; then
echo "This script can't run without your Sauce credentials"
echo "Please set SAUCE_USERNAME and SAUCE_ACCESS_KEY env variables"
echo "export SAUCE_USERNAME=ur-username"
echo "export SAUCE_ACCESS_KEY=ur-access-key"
exit 1
fi
SAUCE_TMP_DIR="$(mktemp -d -t sc.XXXX)"
payload={
"id": 1,
"number": 1,
"status": null,
"started_at": null,
"finished_at": null,
"status_message": "Passed",
"commit": "62aae5f70ceee39123ef",
"branch": "master",
"message": "the commit message",
#!/bin/bash
pluginpath="$(dirname "$(readlink -f $0)")"
ln -svf "$pluginpath/tmux.conf" "$HOME/.tmux.conf"
#!/bin/bash
pluginpath="$(dirname "$(readlink -f $0)")"
ln -svf "$pluginpath/gitconfig" "$HOME/.gitconfig"
ln -svf "$pluginpath/gitignore" "$HOME/.gitignore"
@sarahhodne
sarahhodne / mac-workaround.md
Last active December 17, 2015 07:39
Workaround for the current issue with "brew update" on the Travis Mac VMs.

There's currently an issue with running brew update on the Mac VMs, where you'll get an error along the lines of Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master.

Running git --work-tree=/usr/local --git-dir=/usr/local/.git clean -fd before brew update will fix this. The VMs will be updated later today with a fix, at which point the workaround is no longer needed, but it won't break anything either.

@sarahhodne
sarahhodne / 01-travis-contributors.txt
Created December 3, 2012 22:20
List of the top contributors across the travis-ci organization's projects
svenfuchs: 5515 (#1)
joshk: 2234 (#2)
michaelklishin: 2206 (#3)
drogus: 1145 (#4)
rkh: 888 (#5)
roidrage: 674 (#6)
henrikhodne: 394 (#7)
sferik: 302 (#8)
ifesdjeen: 220 (#9)
randym: 192 (#10)
@sarahhodne
sarahhodne / menu.xml
Created November 9, 2012 11:31
phpMyMenu - My first ever open source project published September 2006. I was 13 years old at the time, please don't judge me.
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- This is a sample XML menu file -->
<menu>
<menuItems>
<menuItem>
<mItext>Sample link</mItext>
<mIlink>dir/to/page</mIlink>
</menuItem>
</menuItems>
<layout>
(ns leonardo.users)
(defn init-users
[] {})
(defn add-user
[users username]
(conj users
{username
{:points 0