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
#!/bin/sh | |
. /etc/rc.common | |
StartService () | |
{ | |
ConsoleMessage "Running SpoofMAC script." | |
networksetup -setairportpower en0 on | |
/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z | |
/sbin/ifconfig en1 ether 00:`openssl rand -hex 5 | sed 's/\(..\)/\1:/g; s/.$//'` |
gem list | cut -d" " -f1 | xargs gem uninstall -aIx |
“   “ opening double quote | |
”   ” closing double quote | |
‘   ‘ opening single quote | |
’   ’ closing single quote | |
–   – en dash | |
—   — em dash | |
−   − minus | |
×   × multiplication | |
...   … ellipsis |
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
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} |
#!/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] |
# 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) | |
# |
<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> |
#!/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 |
{ | |
"printWidth": 120, | |
"singleQuote": true, | |
"useTabs": false, | |
"tabWidth": 2, | |
"semi": true, | |
"bracketSpacing": true | |
} |