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
# 1. Generate an API Token from dnspod.cn | |
# 2. create a record first | |
# 3. change $TMP_FILE | |
# 4. get your $DOMAIN_ID | |
# 5. change $NEW_IP generation method. | |
# 6. sudo apt-get install jq | |
TOKEN=12345,1234567890abcdef1234567890abcdef #TODO: change this TOKEN. | |
TMP_FILE=/tmp/scateu.me.list #TODO |
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
import base64 | |
import sys | |
def get_nalus(file_name, count): | |
bitstream = open(file_name, "rb") | |
data = bitstream.read(count*3000) | |
data = base64.b16encode(data) | |
nalus = data.split('00000001') | |
for nalu in nalus[1:count+1]: | |
nalu_t = int(nalu[0:2],16) & int('1f',16) |
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
绝代有佳人,幽居在空谷。 | |
自云良家子,零落依草木。 | |
关中昔丧乱,兄弟遭杀戮。 | |
官高何足论,不得收骨肉。 | |
世情恶衰歇,万事随转烛。 | |
夫婿轻薄儿,新人美如玉。 | |
合昏尚知时,鸳鸯不独宿。 | |
但见新人笑,那闻旧人哭! | |
在山泉水清,出山泉水浊。 | |
侍婢卖珠回,牵萝补茅屋。 |
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 -*- | |
import urllib2 | |
import urllib | |
import cookielib | |
import httplib | |
import linecache | |
import random | |
def Say(words): | |
print words |
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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
NewerOlder