Skip to content

Instantly share code, notes, and snippets.


戴均民 taichunmin

View GitHub Profile
View like query
建立一個新的 Provider
namespace App\Providers;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\ServiceProvider;
apt-get install build-essential libtool libusb-dev libusb-1.0 gcc make autoconf pkg-config libudev-dev flex pcsc-tools libpcsclite-dev
#download pcsc lite
tar xvf pcsc-lite*.tar.bz2
cd pcsc*
voodeng /
Created May 31, 2014 — forked from jookyboi/
CSS libraries and guides to bring some order to the chaos.


  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.


voodeng /
Created May 31, 2014 — forked from jookyboi/
Python-related modules and guides.


  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.


hwdsl2 /
Last active May 10, 2022
IPsec VPN Server Auto Setup Script for Ubuntu and Debian
ufologist / CryptoJS-DES.html
Created May 15, 2013
Use CryptoJS encrypt message by DES and direct decrypt ciphertext, compatible with Java Cipher.getInstance("DES")
View CryptoJS-DES.html
<!-- test pass with CryptoJS v3.1.2 -->
<script src="rollups/tripledes.js"></script>
<script src="components/mode-ecb.js"></script>
* Encrypt message by DES in ECB mode and Pkcs7 padding scheme
* NOTE: DES is weak, please use 3DES(Triple DES) or AES
* @param {String} message
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:


start new with session name:

Thinkscape / isAssocArrayBench.php
Created Mar 3, 2012
A benchmark of several methods for checking if PHP array is associative
View isAssocArrayBench.php
echo "Usage: ".$argv[0]." (number of iterations)\n";
* Arrays to check
$tests = array(
vjt / awesome-nginx.conf
Created Jan 31, 2011
*AWESOME* nginx configuration for Ruby/Rack web applications
View awesome-nginx.conf
# mmm m m mmm mmm mmm mmmmm mmm
# " # "m m m" #" # # " #" "# # # # #" #
# m"""# #m#m# #"""" """m # # # # # #""""
# "mm"# # # "#mm" "mmm" "#m#" # # # "#mm"
# nginx configuration For Ruby/Rack web applications
# Cooked up with style, care and a bit of *secret*
# nerdy spice. :-)