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/env python | |
## Dependencies: | |
# | |
# pip install qiniu | |
# | |
## Tips for Deploy certs to Qiniu: | |
# | |
# export DOMAIN=lewangdev.com | |
# export QINIU_DOMAIN=images.${DOMAIN},staticfiles.${DOMAIN} |
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
{ | |
"name": "SyncExtension", | |
"version": "0.1", | |
"manifest_version": 2, | |
"description": "Storage Sync Extension", | |
"permissions": [ "storage" ], | |
"browser_action": { |
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
aaaa |
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 time,urllib2 | |
from selenium import webdriver | |
def download(driver, target_path): | |
"""Download the currently displayed page to target_path.""" | |
def execute(script, args): | |
driver.execute('executePhantomScript', | |
{'script': script, 'args': args}) | |
# hack while the python interface lags |
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
var result = []; | |
function mselect(i) | |
{ | |
var str_i = ""; | |
if (i < 9) | |
{ | |
str_i = "0"+ (i+1).toString(); | |
} | |
else | |
{ |
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
// ==UserScript== | |
// @name New Script | |
// @namespace Violentmonkey Scripts | |
// @match *://*/* | |
// @grant none | |
// @grant GM_setValue | |
// @grant GM.getValue | |
// ==/UserScript== | |
var i = 1; | |
var num = 2; |
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 time,urllib2 | |
from selenium import webdriver | |
_init_js=""" | |
(function (){ | |
if (window.__e) | |
{ return; | |
} | |
var e=document.createElement('div'); | |
e.setAttribute("id","__s_msg"); | |
e.style.display="none"; |
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
from selenium import webdriver | |
driver = webdriver.Firefox() | |
driver.get('https://www.facebook.com/') | |
with open('jquery-1.9.1.min.js', 'r') as jquery_js: | |
jquery = jquery_js.read() #read the jquery from a file | |
driver.execute_script(jquery) #active the jquery lib | |
driver.execute_script("$('#email').text('anhld')") |
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 type="text/vnd.graphviz" id="graphviz"> | |
digraph G { | |
"browser" -> | |
"http_request" -> | |
"server" -> | |
"routes" -> | |
"controller" -> | |
"model" -> "controller" | |
"controller" -> "response" | |
"response" -> "view" -> "html" |
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
{ | |
"log": { | |
"loglevel": "none" | |
}, | |
"inbound": { | |
"port": 23456, | |
"listen": "127.0.0.1", | |
"protocol": "socks", | |
"settings": { | |
"udp": true |
NewerOlder