Skip to content

Instantly share code, notes, and snippets.

@githubutilities
githubutilities / README.md
Last active August 29, 2015 14:20
URL Shortening

URL Shortening Test

Current URL shortening services uses HTTP 302 response to temporarily redirect instead of 301(Moved Permanently) because of their statistic services. Browser will not access that address more than once if 301 is returned unless the caches have been cleared.

# use curl with `-i` to see the http header
curl -i http://git.io/vJxbs

Reference

@githubutilities
githubutilities / README.md
Last active August 29, 2015 14:20
Homebrew Usage Logs
@githubutilities
githubutilities / README.md
Last active August 29, 2015 14:20
File encryption

File Encryption

Using zip command

# encrypt a file
zip -e <out-file> <in-file>
# encrypt a folder
zip -e -r <out-file> <in-folder>
@githubutilities
githubutilities / README.md
Last active August 29, 2015 14:20
Python CheatSheet
@githubutilities
githubutilities / README.md
Created May 14, 2015 03:24
Python Image Processing

Python Image Processing

Install PIL(Python Image Library)

According to this, run pip install Pillow instead, because PIL is not maintain and Pillow is maintained fork of it.

@githubutilities
githubutilities / README.md
Last active August 29, 2015 14:21
Wordpress Cheatsheet

Wordpress CheatSheet

Wordpress is a simple CMS(Content Management System) which can be used as a blog page.

Wordpress Database Hacks

  • change theme from database

change template ,stylesheet and current_theme rows under wp_options table(a key-value option table).

@githubutilities
githubutilities / README.md
Last active August 29, 2015 14:21
Infomation-Image Processing in Command Line

QR Code in Command Line

# encode
brew install qrencode
qrencode --margin=1 --size 100 --type=png --output=qrcode.png https://www.google.com

# decode
brew install zbar
zbarimg qrcode.png
@githubutilities
githubutilities / README.md
Created May 16, 2015 04:37
SVN Cheatsheet