Skip to content

Instantly share code, notes, and snippets.

View samullen's full-sized avatar

Samuel Mullen samullen

View GitHub Profile
@samullen
samullen / heroku_import.sh
Last active December 23, 2015 07:18
function to import heroku database into a local postgres database Usage: heroku_import <appname> <database name>
function heroku_import {
app=$1
database=$2
dumpfile="/tmp/${database}.dump"
heroku pgbackups:capture --app $app
curl -o $dumpfile `heroku pgbackups:url --app ${app}`
pg_restore --verbose --clean --no-acl --no-owner --jobs 4 -d $database $dumpfile
}
@samullen
samullen / productivity.sh
Last active January 30, 2019 18:46
The two most productivity increasing Bash functions ever written.
function worktime {
echo "# WORKTIME" | sudo tee -a /etc/hosts > /dev/null
while read -r line; do
echo "127.0.0.1 ${line}"
done < $HOME/.blocked_sites | sudo tee -a /etc/hosts > /dev/null
}
function slacktime {
flag=0
while read -r line; do
@samullen
samullen / keybase.md
Created September 19, 2019 18:18
keybase.md

Keybase proof

I hereby claim:

  • I am samullen on github.
  • I am samullen (https://keybase.io/samullen) on keybase.
  • I have a public key ASCXrrHQGs_AlnftyrLbcSM3YXg2vd28mo__mejPhoOrBQo

To claim this, I am signing this object:

@samullen
samullen / table.mkdn
Created February 22, 2020 18:12 — forked from ngs/table.mkdn
Unicode character table

A

Description Entity Preview
A With Acute, Latin Capital Letter &#x00C1; Á
A With Acute, Latin Small Letter &#x00E1; á
A With Breve, Latin Small Letter &#x0103; ă
A With Caron, Latin Small Letter &#x01CE; ǎ
A With Circumflex, Latin Capital Letter &#x00C2; Â
A With Circumflex, Latin Small Letter &#x00E2; â