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
errf("opening"); | |
FILE *f = fopen("test", "rb"); | |
fread(ctx->udp_buf + SHADOWVPN_PACKET_OFFSET, 1, 1024, f); | |
if (-1 == crypto_decrypt(ctx->tun_buf, ctx->udp_buf, 1000)) { | |
errf("failure"); | |
} else { | |
errf("success"); | |
} |
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 <Servo.h> | |
#include "GoBLE.h" | |
#include "Metro.h" | |
Metro servoMove(50); | |
Servo myservoLF; | |
Servo myservoLR; | |
Servo myservoRF; | |
Servo myservoRR; |
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
$ g++ -g LRU.cpp | |
In file included from LRU.cpp:2: | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ext/hash_map:212:5: warning: | |
Use of the header <ext/hash_map> is deprecated. Migrate to <unordered_map> [-W#warnings] | |
# warning Use of the header <ext/hash_map> is deprecated. Migrate to <unordered_map> | |
^ | |
1 warning generated | |
$ lldb ./a.out | |
(lldb) target create "./a.out" | |
Current executable set to './a.out' (x86_64). |
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
test: main.m | |
gcc -o main main.m -framework Foundation |
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
#if !defined(POLARSSL_CONFIG_FILE) | |
#include "polarssl/config.h" | |
#else | |
#include POLARSSL_CONFIG_FILE | |
#endif | |
#if defined(POLARSSL_AES_C) | |
#include "polarssl/aes.h" |
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
clowwindy@localhost:~/workspace/test_git$ git clone /Users/clowwindy/workspace/test_git/repo/ another_user | |
Cloning into 'another_user'... | |
done. | |
clowwindy@localhost:~/workspace/test_git$ cd another_user/ | |
clowwindy@localhost:~/workspace/test_git/another_user$ git fsck --lost-found | |
Checking object directories: 100% (256/256), done. | |
dangling commit 69710fb2d9e9057701d4bdacbd1df6df14f63a61 | |
clowwindy@localhost:~/workspace/test_git/another_user$ git show 69710fb2d9e9057701d4bdacbd1df6df14f63a61 | |
commit 69710fb2d9e9057701d4bdacbd1df6df14f63a61 | |
Author: clowwindy <clowwindy42@gmail.com> |
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
[peername] | |
proto = nacltai | |
proto_publickey = LOCAL_PUBKEY | |
proto_privatekey = REMOTE_PRIKEY | |
local = tuntap | |
local_interface = tunnel | |
local_tunmode = 1 | |
peer = udp | |
peer_localaddr = REMOTE_IP | |
peer_localport = 8000 |
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
curl --socks5-hostname 127.0.0.1:1080 -v http://www.google.com/ 2>&1 | python test_latency.py |
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
var a = 'SOCKS5 127.0.0.1:1080;SOCKS 127.0.0.1:1080;DIRECT'; | |
function FindProxyForURL(url, host) { | |
var b = a; | |
a = 'DIRECT'; | |
return b; | |
} |
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/python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
import json | |
# Linode API Key | |
key = 'API_KEY' | |
# set your VPS root password | |
root_pass = 'AWESOME_PASSWORD' |
NewerOlder