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
| from __future__ import print_function | |
| import requests | |
| from requests.adapters import HTTPAdapter | |
| from requests.packages.urllib3.util.retry import Retry | |
| import bs4 | |
| import sys | |
| # https://www.peterbe.com/plog/best-practice-with-retries-with-requests | |
| def requests_retry_session( | |
| retries=3, | |
| backoff_factor=0.3, |
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
| pragma solidity ^0.4.18; | |
| import "github.com/oraclize/ethereum-api/oraclizeAPI.sol"; | |
| import "github.com/Arachnid/solidity-stringutils/strings.sol"; | |
| contract TestRoll is usingOraclize { | |
| using strings for *; | |
| string public lastresult; | |
| string public lasturl; | |
| function playerRollDice() public | |
| { |
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
| // ==UserScript== | |
| // @name 中行偷渡 | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2 | |
| // @description 自行阅读、自行修改、后果自负 | |
| // @author duduzhu | |
| // @match https://apply.mcard.boc.cn/* | |
| // @grant none | |
| // ==/UserScript== | |
| //2017.3.1 使用方法 随便点一个什么普通卡开始申请,无论页面出现什么空白,都继续下一步即可 |
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/sh | |
| # chkconfig: 2345 20 80 | |
| # description: auto build ssh tunnel towards aliyun.wangnan.me | |
| # Source function library. | |
| if [ -f /etc/init.d/functions ] ; then | |
| . /etc/init.d/functions | |
| elif [ -f /etc/rc.d/init.d/functions ] ; then | |
| . /etc/rc.d/init.d/functions |
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
| wmic | |
| csproduct list full | |
| diskdrive get serialnumber, mediatype, model | |
| diskdrive get signature, mediatype, model (winxp) |
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
| 【贯口部分:空格为词语间隔,逗号为停顿,句号为大气口且带重音,具体请参考视频音频】 | |
| 甲:哎,您是,说相声的吧。 | |
| 乙:没错。 | |
| 甲:看着你可有点儿面熟。 | |
| 乙:认识我? |
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
| use strict; | |
| while(<>) | |
| { | |
| if($_ =~ m/\|.*?(\d*) \|.*\|.*?(\d*) \|/) | |
| { | |
| if($1 or $2) | |
| { | |
| print("$1 $2\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
| #!/usr/bin/perl | |
| # download flv pieces and put them at current dir with name as 01,02,03,etc. | |
| # So less than 100 pieces are expected | |
| use strict; | |
| if(@ARGV != 1) | |
| { | |
| print "download_youku <URL>\n"; | |
| exit 1; | |
| } |
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
| CreateObject("WScript.Shell").run"Rasdial 宽带连接 0355czad01042342 654321",0 |
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
| RewriteEngine on | |
| RewriteRule ^(.*)$ http://www.wangnan.me/$1 [R=301,L] |
NewerOlder