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
iptables -I INPUT -s 204.124.183.100 -j DROP | |
iptables -I INPUT -s 222.186.21.236 -j DROP | |
iptables -I INPUT -s 182.100.67.4 -j DROP | |
iptables -I INPUT -s 186.5.7.98 -j DROP | |
iptables -I INPUT -s 211.151.17.134 -j DROP | |
iptables -I INPUT -s 93.174.95.81 -j DROP | |
iptables -I INPUT -s 200.141.133.74 -j DROP | |
iptables -I INPUT -s 222.186.56.117 -j DROP | |
iptables -I INPUT -s 43.229.53.21 -j DROP |
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, re, commands | |
temp_file_name = "temp.txt" | |
command = "xcrun simctl list > %s" % temp_file_name | |
os.popen(command) | |
ios_list = {} | |
cur_ios = None | |
regex_block = re.compile(r"-- (iOS [5-8].[0-9]) --") |
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
#UPDATE:2013-12-07 12:16 | |
127.0.0.1 localhost | |
#SmartHosts START | |
#Google Services START | |
203.208.46.200 0.docs.google.com | |
203.208.46.200 0.drive.google.com | |
203.208.46.200 1.docs.google.com | |
203.208.46.200 1.drive.google.com |
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
#!/bin/bash | |
# | |
# 1:列出文件夹下所有人的名字并保存成文件 | |
# 2:根据指定URL到Google生成QRCode并下载 | |
# | |
rm ./name_list.txt | |
rm -r ./QRCodes | |
mkdir ./QRCodes |
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
//block declare: | |
typedef int (^startBlock)(int a, int b); | |
typedef int (^endBlock)(); | |
- (void) runBlock:(startBlock)_startBlock end:(endBlock)_endBlock{ | |
int a = _startBlock(1,2); | |
int b = _endBlock(); | |
NSLog(@"start block result : %d", a); | |
NSLog(@"end block result : %d", b); | |
} |
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
#!/bin/bash | |
RAW="庆:101050901七台河:101051002鸡西:101051101鹤岗:101051201齐齐哈尔:101050201大兴安岭:101050701长春:101060101延吉:101060301四平:101060401白山:101060901白城:101060601辽源:101060701松原:101060801吉林:101060201通化:101060501沈阳:101070101鞍山:101070301抚顺:101070401本溪:101070501丹东:101070601葫芦岛:101071401营口:101070801阜新:101070901辽阳:101071001铁岭:101071101朝阳:101071201盘锦:101071301大连:101070201锦州:101070701" | |
echo $RAW | grep -Eo '(.+?):([0-9]+)' | awk -F ':' ' | |
BEGIN{ | |
printf "%-12s %-12s \n","City","Number" | |
printf "-------------------------\n" | |
} |
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 "庆:101050901七台河:101051002鸡西:101051101鹤岗:101051201齐齐哈尔:101050201大兴安岭:101050701长春:101060101延吉:101060301四平:101060401白山:101060901白城:101060601辽源:101060701松原:101060801吉林:101060201通化:101060501沈阳:101070101鞍山:101070301抚顺:101070401本溪:101070501丹东:101070601葫芦岛:101071401营口:101070801阜新:101070901辽阳:101071001铁岭:101071101朝阳:101071201盘锦:101071301大连:101070201锦州:101070701" | grep -Eo '(.+?):([0-9]+)' |
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
<!-- 让个人首页内容等宽居中 --> | |
<div class="W_main_c" style="left:50%; top:50%; width:auto;"> |
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
-- select hunman readable time from a unix timestamp | |
select | |
latitude,longitude,datetime(time / 1000, 'unixepoch', 'localtime') as time | |
from UploadedGPSPoints order by -time; |
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
weibo.com##DIV[class="WB_feed_type SW_fun S_line2 type_spe"] | |
weibo.com##DIV[class="WB_feed_type SW_fun W_no_border S_line2"] | |
weibo.com##DIV[class="key S_textb"] | |
weibo.com##DIV[class="W_tips tips_error clearfix"] | |
weibo.com##DIV[class="WB_feed_together S_line1 S_bg1"] | |
weibo.com##DIV[id="pl_rightmod_noticeboard"] | |
weibo.com##DIV[id="trustPagelet_recom_memberv5"] | |
weibo.com##DIV[id="pl_leftnav_app"] | |
weibo.com##DIV[id="trustPagelet_indexright_recom"] |
NewerOlder