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
#!/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('\\'', '\'') |
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
<?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 |
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
#!/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 |
NewerOlder