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 | |
URL=$1 | |
WORKDIR=/tmp | |
# puff.py helper location | |
PUFF=/usr/local/bin/puff.py | |
ID=`youtube-dl --get-id $URL` |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
I wasted too much time trying to make MySQLdb work with Python 2.5 (mysteriously it worked fine with 2.7). I thought I'll share my experience.
I installed MySQLdb normally with pip install MySQL-python
(yeah,
ingenious name) and there were no problems. But every time I imported
it, I got following error: