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
tell application "System Events" | |
tell current location of network preferences | |
set serviceVpn to service "NAME" -- name of the VPN service | |
if exists serviceVpn then connect serviceVpn | |
end tell | |
end tell |
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
set strA to "Leask Huang" -- PUT YOUR STRING HERE | |
do shell script "md5 -q -s '" & strA & "'" |
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 | |
# merge2ass.sh - script for merging two text-subtitles into an ass subtitle file | |
# version 0.9, 8-august-2007 | |
# comments/criticism/praise to jose1711-gmail-com | |
# dependencies: mplayer (if your subtitle files need to be converted to srt), gnu utils | |
# thanks to: | |
# - d.watzke for comments | |
# - belisarivs for testing |
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/sh | |
# Proxy Switch by LeaskH.com | |
if [ "`echo 'PUT YOUR PASSWORD HERE' | sudo -S networksetup -getsocksfirewallproxy Wi-Fi | grep '^Enabled'`" = 'Enabled: Yes' ]; then | |
sudo networksetup -setsocksfirewallproxystate Wi-Fi off | |
echo 'Turned off!' | |
else | |
sudo networksetup -setsocksfirewallproxystate Wi-Fi on | |
echo 'Turned on!' | |
fi |
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" ?> | |
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> | |
<cross-domain-policy> | |
<allow-access-from domain="*.com"/> | |
</cross-domain-policy> |
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
<?php | |
/** | |
* wechat php test | |
*/ | |
//define your token | |
define("TOKEN", "weixin"); | |
$wechatObj = new wechatCallbackapiTest(); | |
$wechatObj->valid(); |
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/sh | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin; export PATH | |
basedir="/Applications/PCKeyboardHack.app/Contents/Library" | |
kextfile='' | |
uname=`uname -r` | |
case "${uname%%.*}" in | |
11) | |
kextfile="$basedir/PCKeyboardHack.10.7.kext" | |
;; |
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
Device Information Listing for Leask@TEST-16195D5B7C - 2007-5-13 13:29:48 | |
Intel(R) 82801 PCI Bridge - 2448 | |
Chip: Intel Corporation 82801BAM/CAM/DBM (ICH2-M/3-M/4-M) Hub | |
Interface to PCI Bridge | |
Detail |
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
<html> | |
<head> | |
<title>RSS 新闻采集程序 Demo</title> | |
</head> | |
<body> | |
<p>RSS 新闻采集程序 Demo</p> | |
<br> | |
<br> | |
<p> | |
<p>Demo A: 新华网国际新闻</p> |
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
<%@ Language=VBScript %> | |
<% | |
sXmlAction = sXmlAction & "<GenerateRequest>" | |
sXmlAction = sXmlAction & "<PxPayUserId>TestAccount</PxPayUserId>" | |
sXmlAction = sXmlAction & "<PxPayKey>ae4268ddc0bf1744d48f93f317bb5c23b444cbada22ecff3fae62d566e152595</PxPayKey>" | |
sXmlAction = sXmlAction & "<TxnType>Purchase</TxnType>" | |
sXmlAction = sXmlAction & "<CurrencyInput>NZD</CurrencyInput>" | |
sXmlAction = sXmlAction & "<AmountInput>2.03</AmountInput>" | |
sXmlAction = sXmlAction & "<MerchantReference>Test Transaction</MerchantReference>" |