Skip to content

Instantly share code, notes, and snippets.

View test.c
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)) {
} else {
View Microbot.ino
#include <Servo.h>
#include "GoBLE.h"
#include "Metro.h"
Metro servoMove(50);
Servo myservoLF;
Servo myservoLR;
Servo myservoRF;
Servo myservoRR;
View gist:b8a8c6e07a8df485e647
$ g++ -g LRU.cpp
In file included from LRU.cpp:2:
/Applications/ 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).
clowwindy / Makefile
Last active Jan 4, 2016
stringByAddingPercentEncodingWithAllowedCharacters Crash
View Makefile
test: main.m
gcc -o main main.m -framework Foundation
clowwindy / aes.c
Created Nov 11, 2014
PolarSSL aes-256-cfb minimal
View aes.c
#include "polarssl/config.h"
#if defined(POLARSSL_AES_C)
#include "polarssl/aes.h"
View git
clowwindy@localhost:~/workspace/test_git$ git clone /Users/clowwindy/workspace/test_git/repo/ another_user
Cloning into 'another_user'...
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 <>
clowwindy / 0. remote.conf
Last active Nov 14, 2018
SigmaVPN configure
View 0. remote.conf
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
curl --socks5-hostname -v 2>&1 | python
View gist:9522563
function FindProxyForURL(url, host) {
var b = a;
a = 'DIRECT';
return b;
clowwindy / gist:7889692
Last active Aug 19, 2021
Create 100 Linodes from Stackscript
View gist:7889692
# -*- coding: utf-8 -*-
import urllib2
import json
# Linode API Key
key = 'API_KEY'
# set your VPS root password
root_pass = 'AWESOME_PASSWORD'