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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/* | |
* MCrypt API available online: | |
* http://linux.die.net/man/3/mcrypt | |
*/ | |
#include <mcrypt.h> |
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
#!/bin/bash | |
# | |
# myservice Start up myservice | |
# | |
# chkconfig: 2345 55 25 | |
# description: This's the description | |
# | |
# processname: myservice | |
# Source function library |
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
#!/bin/bash | |
path='.' | |
keyword=$1 | |
function deep(){ | |
for file in `ls $1` ; do | |
if test -d $1"/"$file ; then | |
deep $1"/"$file | |
else | |
cat $1"/"$file | grep $keyword > /dev/null |
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
#!/bin/bash | |
#wget works, too | |
#wget -r -p -k -np -c -nH --cut-dirs=1 -e robots=off -t5 -R iso,gif,css,js,ico,png,html,1 -P /srv/http/centos/ http://mirrors.aliyun.com/centos/6.5/ | |
RsyncBin="/usr/bin/rsync" | |
RsyncPerm='-avrt --delete --exclude=isos/ --exclude=i386/' | |
Version=6.5 #depends | |
Target='/srv/http/centos/$Version/' #depends | |
Repo='rsync://mirrors.kernel.org/centos/$Version/' | |
LogFile='/srv/http/centos/log' #depends | |
Date=`date +%Y-%m-%d` |
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
----- BEGIN LICENSE ----- | |
Andrew Weber | |
Single User License | |
EA7E-855605 | |
813A03DD 5E4AD9E6 6C0EEB94 BC99798F | |
942194A6 02396E98 E62C9979 4BB979FE | |
91424C9D A45400BF F6747D88 2FB88078 | |
90F5CC94 1CDC92DC 8457107A F151657B | |
1D22E383 A997F016 42397640 33F41CFC | |
E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D |
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
#!/bin/sh | |
cnlist() { | |
wget -4 --no-check-certificate -O /etc/dnsmasq.d/accelerated-domains.china.conf https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/accelerated-domains.china.conf | |
wget -4 --no-check-certificate -O /etc/dnsmasq.d/bogus-nxdomain.china.conf https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/bogus-nxdomain.china.conf | |
} | |
adblock() { | |
wget -4 --no-check-certificate -O - https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt | | |
grep ^\|\|[^\*]*\^$ | | |
sed -e 's:||:address\=\/:' -e 's:\^:/127\.0\.0\.1:' | uniq > /etc/dnsm |
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/python2 | |
import urllib, json | |
from BeautifulSoup import BeautifulSoup | |
data = {} | |
# inconformity | |
blacklist = ['mathjax', 'yui', 'documentup'] | |
res = urllib.urlopen('https://cdnjs.com/').read() | |
soup = BeautifulSoup(res) | |
libs = soup.findAll('tr', attrs={'data-library-name': True}) |
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
# -*- coding: utf-8 -*- | |
# Dependents: | |
# qiniu-sdk(https://github.com/qiniu/python-sdk/releases) | |
# requests(http://docs.python-requests.org/en/latest/user/install/) | |
from qiniu import Auth | |
from qiniu import BucketManager | |
access_key = '...' | |
secret_key = '...' | |
bucket_name = '...' |
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
#!/bin/bash | |
if [ X$1 = X ] | |
then | |
echo 'No passwd input!' | |
exit | |
fi | |
apt-get update | |
apt-get -y install python-pip python-m2crypto supervisor | |
pip install shadowsocks |
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
石家庄市 | |
唐山市 | |
秦皇岛市 | |
邯郸市 | |
邢台市 | |
保定市 | |
张家口市 | |
承德市 | |
沧州市 | |
廊坊市 |
OlderNewer