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
# ssxy | |
import random | |
from twitter import * | |
from pymongo import MongoClient | |
client = MongoClient('localhost', 27017) | |
db = client.Shishuoxinyu | |
''' | |
k = oauth_dance('twitter_username', |
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
[submodule "plugins/rainbow-mode"] | |
path = plugins/rainbow-mode | |
url = https://github.com/emacsmirror/rainbow-mode.git | |
[submodule "plugins/magit"] | |
path = plugins/magit | |
url = https://github.com/magit/magit.git | |
[submodule "plugins/yasnippet"] | |
path = plugins/yasnippet | |
url = https://github.com/chao787/yasnippet.git | |
[submodule "snippets"] |
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 os | |
import trollius | |
from pydrive.auth import GoogleAuth | |
from pydrive.drive import GoogleDrive | |
# Auth Google Drive | |
gauth = GoogleAuth() | |
gauth.LoadCredentialsFile("creds.json") |
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 os | |
import upyun | |
from progressbar import * | |
# http://stackoverflow.com/questions/1192978/python-get-relative-path-of-all-files-and-subfolders-in-a-directory | |
myFolder = "/podcast/pod/podcasts/" | |
os.chdir(myFolder) | |
fileSet = set() |
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
echo 'QingCloud Debian7.5 One-Click PPTP Server' | |
apt-get install pptpd | |
cat >> /etc/pptpd.conf<<-EOF | |
localip 10.0.0.1 | |
remoteip 10.0.0.100-200 | |
EOF | |
cat >>/etc/ppp/chap-secrets<<-EOF |
NewerOlder