add a script to upload files to static.samhuri.net
This commit is contained in:
parent
5ee63fa28f
commit
e1e212eb3a
1 changed files with 5 additions and 0 deletions
5
upload-to-s3
Executable file
5
upload-to-s3
Executable file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
filename=$(basename "$1")
|
||||||
|
s3cmd put "$1" s3://static.samhuri.net/"$filename"
|
||||||
|
ruby -rerb -e "print 'http://static.samhuri.net/' + ERB::Util.url_encode('$filename')" | pbcopy
|
||||||
Loading…
Reference in a new issue