- cat
- echo
- date
- sleep
This file contains 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
from __future__ import unicode_literals | |
from datetime import datetime | |
WHOLE_NOTE = "\U0001D15D" | |
HALF_NOTE = "\U0001D15E" | |
QUARTER_NOTE = "\U0001D15F" | |
EIGHTH_NOTE = "\U0001D160" | |
WHOLE_REST = "\U0001D13B" | |
HALF_REST = "\U0001D13C" |
This file contains 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
from sh import ifconfig, git, cd, touch, wc, find, ps, tail, ls, mkdir | |
def iface_info(iface='wlan0'): | |
print(ifconfig(iface)) | |
def create_git_repo(path): | |
mkdir(path, p=True) | |
cd(path) |
This file contains 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
letters = { | |
'a': 'ka', | |
'b': 'zu', | |
'c': 'mi', | |
'd': 'te', | |
'e': 'ku', | |
'f': 'lu', | |
'g': 'ji', | |
'h': 'ri', | |
'i': 'ki', |
This file contains 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
CONFIGFILE_PATH = "~/.tiktok.conf" | |
config = None | |
def get_config(): | |
global config | |
if not config: | |
config = loadconfig( configfile ) | |
return config | |
This file contains 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
#!/usr/bin/env python2 | |
import urllib | |
import json | |
URL="HTTPS://mtgox.com/api/1/BTCUSD/ticker" | |
print json.loads(urllib.urlopen(URL).read())['return']['last_local']['value'] |
This file contains 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
<?php | |
$BASE_URL = "http://131.137.250.85/cgi-bin/qweb.dll"; | |
$SCRIPT_NAME = basename(__FILE__); | |
function send_request($url, $body=null) { | |
$query = parse_url($url); |
This file contains 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
from html.parser import HTMLParser | |
from urllib import request | |
import os.path | |
import re | |
import json | |
import sys | |
class ImgListScraper( HTMLParser ): |
This file contains 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
#!/usr/bin/env python2 | |
import urllib | |
import smtplib | |
import time | |
from HTMLParser import HTMLParser | |
from email.mime.text import MIMEText | |
SERVER = "smtp.gmail.com" | |
PORT = 587 |
NewerOlder