Skip to content

Instantly share code, notes, and snippets.

View captainsafia's full-sized avatar

Safia Abdalla captainsafia

View GitHub Profile
@jbarnoud
jbarnoud / gh-pull.bash
Last active March 16, 2017 17:12
A bash function that allows you to quickly checkout a branch for a pull request on a repo.
# Checkout a branch for a pull request
# Inspired from
# https://gist.github.com/captainsafia/954351fc7b05bb748b5d2112624f8a2f
function gh-pull {
if [[ "$#" != 2 ]]
then
echo "Arguments must be <remote> <PR-ID>."
return 1
fi
remote=$1
@benfoxall
benfoxall / runkeeper-export.sh
Last active April 20, 2018 20:47
A bash script for exporting runkeeper data.
# Requires:
# a) `jq` to be installed
# b) A Bearer token (you can grab this from the healthgraph debug console)
export BEARER=MY_TOKEN_FROM_THE_CONSOLE
curl https://api.runkeeper.com/fitnessActivities?pageSize=100 -H "Authorization: Bearer $BEARER" > page1.json
curl https://api.runkeeper.com/fitnessActivities?pageSize=100&page=2 -H "Authorization: Bearer $BEARER" > page2.json
curl https://api.runkeeper.com/fitnessActivities?pageSize=100&page=3 -H "Authorization: Bearer $BEARER" > page3.json
@gsavovski
gsavovski / VimChi - June 25th 2014 - Hashrocket
Last active August 29, 2015 14:02
Unite.vim Talk - VimChi - June 25th 2014 - Hashrocket
Unite.vim
===============================================
These are takeaways from the VimChi talk on Unite.vim.
This gist serves as easy copy paste resource when experimenting
with Unite, so that I can save you from taking notes in
the talk.
For more specific configuration with mapping and such,
you can checkout my .vimrc: github.com/gsavovski/VimplifY