Skip to content

Instantly share code, notes, and snippets.

View muhrusdi's full-sized avatar
Writing Code

Muhammad Rusdi muhrusdi

Writing Code
View GitHub Profile
@muhrusdi
muhrusdi / gist:f13e27f662e8cba8488c032e16ba7ec5
Created October 13, 2016 05:40 — forked from lxneng/gist:741932
install PostgreSQL 9 in Mac OSX via Homebrew
install PostgreSQL 9 in Mac OSX via Homebrew
Mac OS X Snow Leopard
System Version: Mac OS X 10.6.5
Kernel Version: Darwin 10.5.0
Install notes for PostgreSQL 9.0.1 install using Homebrew:
sh-3.2# brew install postgresql
@muhrusdi
muhrusdi / GIF-Screencast-OSX.md
Created September 13, 2016 05:24 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@muhrusdi
muhrusdi / Router.swift
Created July 13, 2016 05:02
Uploading a file with SWIFT via POST multipart/form-data (PHP)
import Foundation
import Alamofire
public enum Router:URLRequestConvertible {
public static let baseUrlString:String = "http://testapi.example.com"
case Upload(fieldName: String, fileName: String, mimeType: String, fileContents: NSData, boundaryConstant:String);
var method: Alamofire.Method {
switch self {
case Upload: