Skip to content

Instantly share code, notes, and snippets.

@wzhd
wzhd / .gitignore
Last active November 4, 2017 08:40
console-wave
dist
cabal-dev
*.o
*.hi
*.chi
*.chs.h
.virtualenv
.hsenv
.cabal-sandbox/
cabal.sandbox.config
@wzhd
wzhd / nginx-lang.lua
Created September 14, 2016 11:46 — forked from mauron85/nginx-lang.lua
Detect preferred language script for Nginx written in LUA
-------------------------------------------------------------------------------
-- HTTP Accept-Language header handler --
-- @originalAuthor: [email protected] --
-- @originalRepository: https://github.com/fghibellini/nginx-http-accept-lang--
-- @modifiedBy: [email protected] --
-- @gist: https://gist.github.com/mauron85/47ed1075262d9e020fe2 --
-- @license: MIT --
-- @requires: --
-- @description: --
-- returns language with greatest quality --
@wzhd
wzhd / .gitignore
Last active December 20, 2016 09:17 — forked from xiaoganghan/mynote.xml
Parsing Evernote export file (.enex) using Python
*.enex
@wzhd
wzhd / QtVlc
Last active March 1, 2018 15:21
Script using pyqt5 and libvlc
This is the title of the gist.
@wzhd
wzhd / .gitignore
Last active May 14, 2016 14:35
qtile-config
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
#!/usr/bin/ash
run_hook() {
modprobe -a -q dm-crypt >/dev/null 2>&1
[ "${quiet}" = "y" ] && CSQUIET=">/dev/null"
# Get keyfile if specified
ckeyfile="/crypto_keyfile.bin"
if [ -n "$cryptkey" ]; then
IFS=: read ckdev ckarg1 ckarg2 <<EOF
@wzhd
wzhd / README.md
Last active November 22, 2015 04:22
Anki addon zoom

Use larger fonts in Anki.

Verifying that +wzhd is my blockchain ID. https://onename.com/wzhd
@wzhd
wzhd / figure_1.png
Last active September 18, 2015 01:53
A simple Venn diagram
figure_1.png