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
gcc -std=gnu99 -o sslmd5 sslmd5.c -I/home/work/public/third-64/openssl/include -L/home/work/public/third-64/openssl/include -lcrypto |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
char** tokenize(const char* input) | |
{ | |
printf("%s\n", input); | |
char* str = strdup(input); | |
int count = 0; | |
int capacity = 10; |
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
~GOPATH/src/code.google.com/p/mahonia hg diff | |
diff -r 420ce60cb671 gbk.go | |
--- a/gbk.go Fri Jul 19 13:15:30 2013 -0700 | |
+++ b/gbk.go Mon Dec 09 22:27:42 2013 +0800 | |
@@ -12,6 +12,15 @@ | |
return encodeGBKRune | |
}, | |
}) | |
+ RegisterCharset(&Charset{ | |
+ Name: "GB2312", |
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
package main | |
import ( | |
"bufio" | |
"bytes" | |
"io" | |
"os" | |
"strings" | |
"time" |
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
commit 8eed215edb5f1cd086e185d09c1b771015193ccc | |
Author: Jiang Bian <[email protected]> | |
Date: Wed Nov 20 19:21:52 2013 +0800 | |
Zxing Camera in Portrait mode | |
diff --git a/AndroidManifest.xml b/AndroidManifest.xml | |
index db60cba..11a4cc8 100755 | |
--- a/AndroidManifest.xml | |
+++ b/AndroidManifest.xml |
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/expect | |
# | |
# Auto Login script Relay And Dev Server For XXX | |
# | |
set tokenprepass "Token PIN" | |
set relayhost "[email protected]" | |
set server "OOXX@SERVER_HOST" | |
set password "HOST_PASSWD" |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"net/url" | |
) |
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 citylist.txt| grep -o -E 'href="([^"#]+)"' | cut -d '"' -f2 | sort | uniq | |
cat citylist.txt| grep -o -E 'http://([a-z]+).XXX.com' | sort | uniq |
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 bin/macwifi.sh | |
#!/bin/bash | |
while true | |
do | |
ifconfig en1 down | |
sleep 2 | |
ifconfig en1 up | |
sleep 120 | |
done |