This file contains hidden or 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 | |
# | |
# generate ssl cert for https | |
# | |
set -e | |
if [ "$DEBUG"x = "true"x ]; then | |
set -x |
This file contains hidden or 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
void Jump2Regedit(HKEY hRoot, const CString& strKey, const CString& strValue = TEXT(""), const DWORD dwSleepTime = 100) | |
{ | |
do | |
{ | |
if (NULL == hRoot || strKey.IsEmpty()) | |
{ | |
break; | |
} | |
//连接字符串 |
This file contains hidden or 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 | |
set -e | |
set -x | |
git config http.proxy http://127.0.0.1:8899 | |
git $@ | |
git config --unset http.proxy |
This file contains hidden or 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 ( | |
"flag" | |
"fmt" | |
"net" | |
) | |
func main() { | |
var network string |
This file contains hidden or 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 ( | |
"fmt" | |
"time" | |
) | |
type LatencyPrinter struct { | |
beginTime time.Time | |
} | |
func (h *LatencyPrinter) Begin() { |
This file contains hidden or 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 | |
VPN_SERVER_IP= | |
REAL_SERVER_IP= | |
VPN_NAME= | |
usage() | |
{ |
This file contains hidden or 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
#define STRING2(x) #x | |
#define STRING(x) STRING2(x) | |
#define LOG_WARNING ("@@@@@ Need Log @@@@@ " __FILE__ "[" STRING(__LINE__) "]: " __FUNCTION__) | |
#pragma message LOG_WARNING |
This file contains hidden or 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 sys | |
import logging | |
formatter = logging.Formatter('[%(asctime)s] %(levelname)-5s PID:%(process)d [%(filename)s], %(module)s %(lineno)d: %(message)s') | |
logger = logging.getLogger("") | |
console = logging.StreamHandler(sys.stdout) | |
console.setFormatter(formatter) | |
logger.addHandler(console) |
NewerOlder