Skip to content

Instantly share code, notes, and snippets.

View zz's full-sized avatar
💭
I may be slow to respond.

ZZ zz

💭
I may be slow to respond.
  • Japan
View GitHub Profile
#!/usr/bin/env python2
import re, sys, os, urllib
re_songs = re.compile(r'\'sid\': \'(.+?)\', \'sname\': \'(.+?)\'')
re_name = re.compile(r'\\&.+?;')
template_wgets = 'wget -nv -c -O "%s" %s'
durl = 'http://yinyueyun.baidu.com/data/cloud/downloadsongfile\?songIds\=%s\&rate\=320'
def modified_sname(sname):
sname = sname.replace('\\'', '\'')
@zz
zz / Oauth.php
Created October 14, 2012 15:11
Facbook App review codes
<?php
/**
* This is the model class for table "www_oauth".
*
* The followings are the available columns in table 'www_oauth':
* @property integer $id
* @property integer $user_id
* @property integer $service
* @property string $service_uid
@zz
zz / check_backup.pl
Created August 9, 2012 10:23 — forked from n8v/check_backup.pl
Nagios Plugin for checking a backup file for existence, age and size.
#!/usr/bin/perl
### check_backup.pl
# By Nathan Vonnahme, Sept 2011
# An example for "Writing Custom Nagios Plugins in Perl" at the Nagios
# World Conference North America 2011.
# I. Prologue