Last active
August 29, 2015 14:15
-
-
Save rosskukulinski/a314f14f3657f2f3d5a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function reviewed(){ | |
docker run -t --rm -e IDT_USERNAME -e IDT_PASSWORD -e IDT_ADDRESS jess/idonethis "reviewed #${1}" | |
} | |
function http(){ | |
docker run -t --rm jess/httpie "$@" | |
} | |
function aws(){ | |
docker run -t --rm -v $HOME/.aws:/root/.aws jess/awscli "$@" | |
} | |
function t(){ | |
docker run -t --rm -v $HOME/.trc:/root/.trc jess/t "$@" | |
} | |
function cloudapp(){ | |
docker run -t --rm -v $HOME/pics/$@:/root/$@ jess/cloudapp "$@" | |
} | |
function chrome(){ | |
docker run -d --net host \ | |
-v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY \ | |
-v $HOME/Downloads:/root/Downloads -v $HOME/.config/chromium/:/data \ | |
--name chrome jess/chromium | |
} | |
function irssi(){ | |
docker run --rm -it \ | |
-v /etc/localtime:/etc/localtime:ro -e TERM \ | |
-u $(id -u):$(id -g) -v $HOME/.irssi:/home/user/.irssi \ | |
--read-only \ | |
--name irssi irssi | |
} | |
function mutt-me(){ | |
docker run -it --rm -e GMAIL="$GMAIL1" -e GMAIL_NAME="$GMAIL1_NAME" -e GMAIL_PASS="$GMAIL1_PASS" \ | |
-e GMAIL_FROM="$GMAIL1_FROM" \ | |
-v $HOME/.gnupg:/home/user/.gnupg --name mutt-me jess/mutt | |
} | |
function mutt-docker(){ | |
docker run -it --rm -e GMAIL="$GMAIL2" -e GMAIL_NAME="$GMAIL2_NAME" -e GMAIL_PASS="$GMAIL2_PASS" \ | |
-e GMAIL_FROM="$GMAIL2_FROM" \ | |
-v $HOME/.gnupg:/home/user/.gnupg --name mutt-docker jess/mutt | |
} | |
function rainbowstream(){ | |
docker run -it --rm -v /etc/localtime:/etc/localtime \ | |
-v $HOME/.rainbow_oauth:/root/.rainbow_oauth \ | |
-v $HOME/.rainbow_config.json:/root/.rainbow_config.json \ | |
--name rainbowstream jess/rainbowstream | |
} | |
function firefox(){ | |
docker run -d \ | |
-v /tmp/.X11-unix:/tmp/.X11-unix \ | |
-e DISPLAY=unix$DISPLAY \ | |
---device /dev/snd:/dev/snd \ | |
--name firefox \ | |
jess/iceweasel | |
} | |
function spotify(){ | |
docker run -d \ | |
-v /tmp/.X11-unix:/tmp/.X11-unix \ | |
-e DISPLAY=unix$DISPLAY \ | |
--device /dev/snd:/dev/snd \ | |
--name spotify \ | |
jess/spotify | |
} | |
function geary(){ | |
docker run --rm -d -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -v $HOME/.geary:/root/.local/share/geary --name geary jess/geary | |
} | |
function icedove(){ | |
docker run --rm -d -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -v $HOME/.icedove:/root/.icedove --name icedove jess/icedove | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment