I've been wanting to do this forever, but this Pen http://codepen.io/Tresva/pen/dxHsb finally pushed me over the edge to do it.
Hacker news if anyone feels like it: https://news.ycombinator.com/item?id=6493590
| // ==UserScript== | |
| // @name PTT Web Auto AID Link | |
| // @description 自動為 PTT 網頁版的文章代碼加上連結 | |
| // @namespace https://www.ptt.cc/bbs | |
| // @author Shao-Chung Chen | |
| // @license MIT (http://opensource.org/licenses/MIT) | |
| // @version 1.3.0 | |
| // @include http://www.ptt.cc/* | |
| // @include https://www.ptt.cc/* | |
| // |
| { | |
| "printWidth": 120, | |
| "singleQuote": true, | |
| "useTabs": false, | |
| "tabWidth": 2, | |
| "semi": true, | |
| "bracketSpacing": true | |
| } |
| #!/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 |
| <div class="wrap"> | |
| <a href="#" class="start">Click to print</a> | |
| <div class="test" data-text="帝旺 則取 2014/1/12 為目標日期,並取 前4天2014/1/8開始 到後4天 2014/1/16 結束 共取9 天"></div> | |
| </div> |
| # 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) | |
| # |
| #!/usr/bin/env python | |
| # | |
| # AccessDump.py | |
| # A simple script to dump the contents of a Microsoft Access Database. | |
| # It depends upon the mdbtools suite: | |
| # http://sourceforge.net/projects/mdbtools/ | |
| import sys, subprocess, os | |
| DATABASE = sys.argv[1] |
| remove empty lines | |
| sed -i '/^[[:space:]]$/d' *.md | |
| convert crlf to cr aka dos to unix with tr command. | |
| for f (*.md) {tr -d '\r' < $f > $f_Without_CR.md} |
I've been wanting to do this forever, but this Pen http://codepen.io/Tresva/pen/dxHsb finally pushed me over the edge to do it.
Hacker news if anyone feels like it: https://news.ycombinator.com/item?id=6493590
| “   “ opening double quote | |
| ”   ” closing double quote | |
| ‘   ‘ opening single quote | |
| ’   ’ closing single quote | |
| –   – en dash | |
| —   — em dash | |
| −   − minus | |
| ×   × multiplication | |
| ...   … ellipsis |
| gem list | cut -d" " -f1 | xargs gem uninstall -aIx |