Skip to content

Instantly share code, notes, and snippets.

@githubutilities
githubutilities / README.md
Created May 16, 2015 09:24
Base64 in Command Line

Base64 in Command Line

Using base64

# encode
base64 <<< 'hello'

# decode
base64 -decode &lt;&lt;&lt; `base64 &lt;&lt;&lt; 'hello'`
@githubutilities
githubutilities / README.md
Last active August 29, 2015 14:21
Media Upload API Design

Media Upload API Design

  • http
  • Content-Type(such as application/json or application/x-www-form-urlencoded) does not mater as long as the key-value things is correct
  • multipart post to reduce overhead and upload multiple images in one http request, here is more detail about multipart form data on stackoverflow.
  • base64 encoding or raw binary

HTTP Keep-Alive Connection

@githubutilities
githubutilities / README.md
Last active August 29, 2015 14:21
OSX app related things

OSX app related things

Getting a info about a specific disk

diskutil info /

for more info, checkout diskutil man page

@githubutilities
githubutilities / README.md
Last active August 29, 2015 14:21
IRC Client

Freenode

freenode is an popular irc network for people to talk about projects in a secure way(TLS support).

TSL can be affected by poodle. google tls poodle for more info.

ZNC Network Bouncer

require TSL or SASL.

@githubutilities
githubutilities / README.md
Last active August 29, 2015 14:21
Mac OSX File Structure

Mac OS X File Structure

To find the configuration files of an app, check for following folder:

  • ~/Library/Application Support
  • ~/Library/Caches
  • ~/Library/Preferences

Reference

@githubutilities
githubutilities / README.md
Created May 19, 2015 02:42
Socket Programming
@githubutilities
githubutilities / README.md
Last active September 3, 2019 19:16
Mac first aid