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
"""Pokemon episode downloader script. | |
Usage: | |
python dl.py https://s2.content.video.llnw.net/smedia/path/to/playlist0.ts | |
""" | |
import os | |
import shutil | |
import sys |
I hereby claim:
- I am grue on github.
- I am grue (https://keybase.io/grue) on keybase.
- I have a public key whose fingerprint is 8AE8 BBBB E371 1F5E E271 4220 12E8 A61C DC18 AE00
To claim this, I am signing this object:
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
import base64 | |
import crypt | |
import getpass | |
import os | |
def crypt6(password, rounds="10000"): | |
return crypt.crypt(password, '$6$rounds=%s$%s$' % (rounds, base64.urlsafe_b64encode(os.urandom(20)))) | |
print crypt6(getpass.getpass()) |
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
def red(text) | |
"\033[1;31;40m#{text}\033[0m" | |
end | |
puts 'Fetching gcc...' | |
os_version = `sw_vers` | |
if os_version.match('10.7') | |
`curl -Lo /tmp/gcc.pkg https://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.7-v2.pkg` |