I hereby claim:
- I am tjroger on github.
- I am rogerluo (https://keybase.io/rogerluo) on keybase.
- I have a public key whose fingerprint is 8BE0 968C 5A10 2B8E B2B1 12F6 D50B E371 BECE 1832
To claim this, I am signing this object:
var finished = true; | |
var onFriendsMessage = function onFriendsMessage(source, message, type, chatter){ | |
// respond to both chat room and private messages | |
if (type == 1) //1, message; 2, tying | |
if(friends.personaStates[source] != undefined){ | |
console.log('Received message: \'' +message+'\' from '+friends.personaStates[source].player_name); | |
if(finished){ | |
var rl = require('readline').createInterface({ | |
input: process.stdin, |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var workaroundIOS9Bug: Bool = true | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
if #available(iOS 9.0, *) { | |
self.workaroundIOS9Bug = true | |
}else { | |
self.workaroundIOS9Bug = false | |
} |
#!/bin/bash | |
# This script downloads and builds the iOS, tvOS and Mac openSSL libraries with Bitcode enabled | |
# Credits: | |
# https://github.com/st3fan/ios-openssl | |
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh | |
# https://gist.github.com/foozmeat/5154962 | |
# Peter Steinberger, PSPDFKit GmbH, @steipete. | |
# Felix Schwarz, IOSPIRIT GmbH, @felix_schwarz. |
<?php | |
/** | |
* by Adrian Statescu <adrian@thinkphp.ro> | |
* Twitter: @thinkphp | |
* G+ : http://gplus.to/thinkphp | |
* MIT Style License | |
*/ | |
#!/bin/bash | |
cd /home/ | |
if [ $1 ]; then | |
for d in */ ; do | |
user=${d%/*} | |
echo $user; | |
#ps aux |grep router.php |grep $user |wc -l | |
ps aux |grep $1 |grep $user |wc -l | |
done | |
else |
#!/bin/bash | |
for d in */ ; do | |
echo 'updated '$d' at '`date +%Y-%m-%d\ %H:%M:%S` >> ~/update.log | |
cd $d && (git pull origin master || ``) && cd .. | |
done |
#!/bin/bash | |
PAC="http://192.168.3.2/proxy.pac" | |
function networkService() { | |
services=$(networksetup -listnetworkserviceorder | grep 'Hardware Port') | |
while read line; do | |
sname=$(echo $line | awk -F "(, )|(: )|[)]" '{print $2}') | |
sdev=$(echo $line | awk -F "(, )|(: )|[)]" '{print $4}') | |
#echo "Current service: $sname, $sdev, $currentservice" | |
if [ -n "$sdev" ]; then | |
ifconfig $sdev 2>/dev/null | grep 'status: active' > /dev/null 2>&1 |