Skip to content

Commit

Permalink
path, aria adduri script
Browse files Browse the repository at this point in the history
  • Loading branch information
oker1 committed Jun 4, 2018
1 parent 49e996e commit 024614b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .bin/aria-adduri
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env python2.7

import os, json, urllib2, sys

secret = os.getenv('ARIA_RPC_SECRET')

jsonreq = json.dumps({'jsonrpc':'2.0', 'id':'qwer','method':'aria2.addUri', 'params':["token:" + secret, sys.argv[1:]]})
res = urllib2.urlopen('http://localhost:6800/jsonrpc', jsonreq)
print res.read()
2 changes: 1 addition & 1 deletion .zsh/conf.d/01-path
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export GOROOT=$BREW_PREFIX/opt/go/libexec/
export GOPATH=$HOME/Dev/go-projects

export PATH=$HOME/.bin:$GOROOT/bin:$GOPATH/bin:~/.composer/vendor/bin:$PATH
export PATH=$GOROOT/bin:$GOPATH/bin:~/.composer/vendor/bin:$PATH:$HOME/.bin
export PATH=/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin:$PATH
export PATH=$HOME/Dev/java/gradle/bin:$PATH
export PATH=$HOME/.rvm/bin:$BREW_PREFIX/bin:$BREW_PREFIX/sbin:$PATH
Expand Down

0 comments on commit 024614b

Please sign in to comment.