title | date | tags | ||
---|---|---|---|---|
GCMForMojo 的部署与设置 |
2017-01-21 11:07:03 -0800 |
|
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/python | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
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
<AppUpdater> | |
<update> | |
<latestVersion>1.1.3</latestVersion> | |
<latestVersionCode>26</latestVersionCode> | |
<url>ttps://lanhaoo.club/irc.apk</url> | |
<releaseNotes> | |
"- 1.新增功能:应用增加没什么用的通知,接受服务器PUSH消息",\n "- 2.新增功能:检测更新",\n "- 3.Bug fixes:部分机型键盘挡住输入框"\n | |
</releaseNotes> | |
</update> | |
</AppUpdater> |
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
outfile = open('resulttiku.txt', 'w',encoding='utf-8') #new file | |
list_1=[] | |
for line in open('tiku.txt',encoding='utf-8'): #old txt file | |
tmp = line.strip() | |
if tmp not in list_1: | |
list_1.append(tmp) | |
outfile.write(line) | |
outfile.close() |
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 -*- | |
def addone(): | |
x=41 | |
y=0 | |
while x<66: | |
x=x+1 | |
y=y+1 | |
x=str(x) | |
y=str(y) | |
mystr= "var btn_"+y+"=document.getElementById("+'"'+y+'"'+");" |
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
bad_words = ['Pixel','Uptimebot/1.0;','DotBot/1.1;',' MJ12bot/v1.4.8','GrapeshotCrawler/2.0;','115.216.108.86','Baiduspider/2.0;','YisouSpider/5.0','"Sogou','"IAS crawler','FeedFetcher-Google','"CheckMarkNetwork/1.0','GoogleImageProxy)"',' /generate_204'] | |
with open('access.txt') as oldfile, open('newfile.txt', 'w') as newfile: | |
for line in oldfile: | |
if not any(bad_word in line for bad_word in bad_words): | |
newfile.write(line) |
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 glob | |
read_files = glob.glob("*.txt") | |
with open("result.txt", "wb") as outfile: | |
for f in read_files: | |
with open(f, "rb") as infile: | |
outfile.write(infile.read()) |
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
<script> | |
function test() { | |
var rows_c =document.getElementById("table1").getElementsByTagName("tr").length; | |
//alert(rows_c); | |
var na=1; | |
var magic_power=[]; | |
var money=[] | |
while(na < rows_c){ | |
var rows = document.getElementsByTagName("table")[0].rows; |
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
num_n=input("input_n:") | |
new_n=int(num_n) | |
range_left="1" | |
range_right="1" | |
a=[] | |
result=[] | |
for i in range(new_n-1): | |
range_left=range_left+"0" |
OlderNewer