Skip to content

Instantly share code, notes, and snippets.

@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
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:20
Python CheatSheet
@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
Homebrew Usage Logs
@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 September 16, 2026 11:38
Backup a single app from iOS

Backup a single app from iOS

Use iTools extract the ipa file from your iDevices

  • install itools
brew tap githubutilities/tap
brew cask install itools246
@githubutilities
githubutilities / README.md
Last active August 29, 2015 14:20
Trace a program in Mac

Trace a program in Mac

1. Using dtrace

Try run apropos dtrace for its usage.

  • io--iosnoop,hfsslower.d
  • exec--execsnoop,opensnoop
  • all--dtruss