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
--- src/openvpn/options.c.orig 2012-12-17 17:36:07.000000000 +0800 | |
+++ src/openvpn/options.c 2013-03-07 23:21:26.230153027 +0800 | |
@@ -62,6 +62,10 @@ | |
#include "memdbg.h" | |
+extern char* _socket_obfs_salt; | |
+extern int _socket_obfs_salt_len; | |
+extern int _socket_obfs_padlen; | |
+ |
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
#!/bin/bash - | |
# Author: Zhuoyun Wei <[email protected]> | |
# Usage: 1. Get your token. | |
# 2. Fill in / replace information below. | |
# 3. Source this file. | |
# 4. `newvenue "某某地铁站 Foobar Metro Station" 120.1234,31.5678` | |
# to add a new venue. Note the order of lat and long. | |
# 5. `addlist VENUEID` to add a venue to your (existing) list. |
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
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<matchtarget="font"><testname="family"><string>MS Gothic</string></test><editname="embeddedbitmap"><bool>false</bool></edit></match> | |
<matchtarget="font"><testname="family"><string>MS UI Gothic</string></test><editname="embeddedbitmap"><bool>false</bool></edit></match> | |
<matchtarget="font"><testname="family"><string>MS PGothic</string></test><editname="embeddedbitmap"><bool>false</bool></edit></match> | |
<matchtarget="font"><testname="family"><string>MS Mincho</string></test><editname="embeddedbitmap"><bool>false</bool></edit></match> | |
<matchtarget="font"><testname="family"><string>MS PMincho</string></test><editname="embeddedbitmap"><bool>false</bool></edit></match> | |
</fontconfig> |
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
#!/bin/bash - | |
# Description: A simple script handling default routing for OpenConnect | |
# URL: https://gist.github.com/wzyboy/07d80b51ff2f8bc50a7c | |
# Author: Zhuoyun Wei <[email protected]> | |
# Optional: Scripts for chnroutes | |
# https://github.com/jimmyxu/chnroutes | |
VPNUP="/etc/openvpn/vpn-up.sh" | |
VPNDOWN="/etc/openvpn/vpn-down.sh" |
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/env python | |
USAGE = """ | |
This script helps to import Twitter's official archive. | |
Usage: ./import.py tweets.csv | |
""" | |
""" | |
Original data structure: |
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/env python3 | |
import os | |
import numpy | |
from zlib import crc32 | |
from shutil import copy | |
from argparse import ArgumentParser | |
def xor(data, key): |
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/env python3 | |
import sys | |
import unicodedata | |
from argparse import ArgumentParser | |
print('Unicode data version: {}'.format(unicodedata.unidata_version)) | |
def name(chars): |
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
# Maintainer: Zhuoyun Wei <[email protected]> | |
pkgname=ocserv | |
pkgver=0.10.9 | |
pkgrel=1 | |
pkgdesc="OpenConnect VPN Server" | |
arch=('i686' 'x86_64') | |
url="http://www.infradead.org/ocserv/" | |
license=('GPL2') | |
depends=('gnutls') |
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/env python | |
import os | |
import sys | |
from zlib import crc32 | |
def crc(filename): | |
MAX_FILE_SIZE = 1024 * 1024 * 1024 * 2 # 2 GiB | |
if os.path.getsize(filename) > MAX_FILE_SIZE: |
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/env python | |
import os | |
import argparse | |
import subprocess | |
def get_fonts_from_ass_file(ass_file): | |
try: | |
with open(ass_file) as f: |
OlderNewer