Skip to content

Instantly share code, notes, and snippets.

@mywarr
mywarr / PTTWebAutoAIDLink.user.js
Created June 12, 2018 13:45 — forked from dannvix/PTTWebAutoAIDLink.user.js
自動為 PTT 網頁版的文章代碼加上連結的 userscript
@mywarr
mywarr / ramdisk.sh
Created March 13, 2018 06:07 — forked from rxin/ramdisk.sh
ramdisk create/delete on Mac OS X.
#!/bin/bash
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/
#
ARGS=2
E_BADARGS=99
if [ $# -ne $ARGS ] # correct number of arguments to the script;
then
# Nginx+Unicorn best-practices congifuration guide. Heartbleed fixed.
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies.
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module
#
# Deployment structure
#
# SERVER:
# /etc/init.d/nginx (1. nginx)
# /home/app/public_html/app_production/current (Capistrano directory)
#