Skip to content

Commit

Permalink
Added torrent alias
Browse files Browse the repository at this point in the history
  • Loading branch information
tdickman committed Jan 16, 2018
1 parent 5f44358 commit 0e70742
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions bash_aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@ export -f otp
# Mount encrypted dir
alias mencrypted='pass show encrypted-dir | head -n 1 | encfs -S ~/Dropbox/Encrypted ~/Encrypted'
alias uencrypted='sudo umount ~/Encrypted'
alias start_torrent="~/dotfiles/start_torrent.sh"
9 changes: 9 additions & 0 deletions start_torrent.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
docker run --cap-add=NET_ADMIN --device=/dev/net/tun -d \
-v /home/tom/torrents:/data \
-v /etc/localtime:/etc/localtime:ro \
-e "OPENVPN_PROVIDER=PIA" \
-e "OPENVPN_CONFIG=Netherlands" \
-e "OPENVPN_USERNAME=p0511592" \
-e "OPENVPN_PASSWORD=$(pass show privateinternetaccess.com | head -n 1)" \
-p 9091:9091 \
haugene/transmission-openvpn

0 comments on commit 0e70742

Please sign in to comment.