Skip to content

Instantly share code, notes, and snippets.

View zhuqling's full-sized avatar

zhuqling zhuqling

  • Guangzhou
View GitHub Profile
@zhuqling
zhuqling / index.html
Created January 12, 2016 01:37 — forked from anonymous/index.html
Pulse button // source http://jsbin.com/soligo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Pulse button</title>
<style id="jsbin-css">
body, html {
height: 100%;
background: #fff;
}
@zhuqling
zhuqling / index.html
Created January 12, 2016 01:40 — forked from anonymous/index.html
JS Bin // source http://jsbin.com/juxefe
<!DOCTYPE html>
<html>
<head>
<script src="http://fb.me/react-with-addons-0.13.3.js"></script>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<title>Apple site nav menu</title>
<style id="jsbin-css">
html {
@zhuqling
zhuqling / index.html
Created January 12, 2016 01:41 — forked from anonymous/index.html
Dot progress // source http://jsbin.com/povohu
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dot progress</title>
</head>
<body>
<span id="loading-dots"></span>
<script id="jsbin-javascript">
var x = 0;
@zhuqling
zhuqling / Install_tmux
Created January 18, 2016 09:44 — forked from simme/Install_tmux
Install and configure tmux on Mac OS X
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using Terminal.app (iTerm has mouse support)
Install http://www.culater.net/software/SIMBL/SIMBL.php
Then install https://bitheap.org/mouseterm/
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/
@zhuqling
zhuqling / golang_job_queue.md
Created March 7, 2016 08:19 — forked from harlow/golang_job_queue.md
Job queues in Golang
@zhuqling
zhuqling / a_golang_job_queue.md
Created March 7, 2016 08:19 — forked from dryaf/a_golang_job_queue.md
Job queues in Golang
@zhuqling
zhuqling / ST3: 3083 and 3103
Created March 22, 2016 06:29
ST3: 3083 and 3103
3103:
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
@zhuqling
zhuqling / ovpn-writer.sh
Created May 26, 2016 07:38 — forked from renatolfc/ovpn-writer.sh
Script to generate an OpenVPN client configuration file in the unified format
#!/bin/sh
##
## Usage: ./ovpn-writer.sh SERVER CA_CERT CLIENT_CERT CLIENT_KEY SHARED_SECRET > client.ovpn
##
server=${1?"The server address is required"}
cacert=${2?"The path to the ca certificate file is required"}
client_cert=${3?"The path to the client certificate file is required"}
client_key=${4?"The path to the client private key file is required"}
@zhuqling
zhuqling / IPSecDemo.m
Created May 26, 2016 07:54 — forked from duoduoyi/IPSecDemo.m
Start IPSec programmatically in iOS 8
- (void)viewDidLoad
{
[super viewDidLoad];
// init VPN manager
self.vpnManager = [NEVPNManager sharedManager];
// load config from perference
[_vpnManager loadFromPreferencesWithCompletionHandler:^(NSError *error) {
@zhuqling
zhuqling / unwxapkg.py
Created January 2, 2018 06:38 — forked from thedreamwork/unwxapkg.py
unpack wxapkg
#!/usr/bin/python
# usage python unwxapkg.py filename
import sys,os
import struct
class WxapkgFile:
nameLen = 0
name = ""