Skip to content

Instantly share code, notes, and snippets.

View oxUnd's full-sized avatar
🔑
多写代码少说话

秋_ oxUnd

🔑
多写代码少说话
  • Harbin Institute of Technology
  • China
View GitHub Profile
@oxUnd
oxUnd / EmacsKeyBinding.dict
Created September 2, 2017 14:33 — forked from jwreagor/EmacsKeyBinding.dict
Global Emacs Key Bindings for OS X
{
/* Keybindings for emacs emulation. Compiled by Jacob Rus.
*
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
*
* BEWARE:
* This file uses the Option key as a meta key. This has the side-effect
* of overriding Mac OS keybindings for the option key, which generally
## FOR UBUNTU
Dependencies install
1. apt-get install nginx-extras
2. apt-get install lua-zlib
lua file decompress request body
--------------------------------
see https://gist.github.com/iammehrabalam/30f5402bbcdad139c9eafd3a6f47ce6c
@oxUnd
oxUnd / API.md
Created December 12, 2016 08:51 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@oxUnd
oxUnd / db_test.py
Created September 27, 2016 05:19 — forked from imankulov/db_test.py
Performance test for MySQL UPDATE
# -*- coding: utf-8 -*-
"""
Performance test for different types of update
Results sample
-----------------------------------------------
In [1]: import db_test
@oxUnd
oxUnd / _helpers.js
Last active August 29, 2015 14:25 — forked from elclanrs/_helpers.js
Monads in JavaScript
var extend = function(a, b) {
for (var i in b)
a[i] = b[i];
return a;
};
var fluent = function(f) {
return function() {
var clone = extend(Object.create(null), this);
f.apply(clone, arguments);
@oxUnd
oxUnd / download.sh
Created October 20, 2011 13:06 — forked from sunner/download.sh
下载gaea的m3u中的所有文件,自动完成所有转码、文件名整理操作
#!/bin/bash
# usage: download *.m3u
for m3u; do
dos2unix -q $m3u
iconv -f gbk -t utf8 $m3u | while IFS=" " read line; do
if [ "${line:0:11}" = "#EXTINF:-1," ]; then
filename=`basename $m3u .m3u`-${line:11:20}.mp3
read url