Skip to content

Instantly share code, notes, and snippets.


Alex Z. Li alex-zige

Block or report user

Report or block alex-zige

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View IT职业分享.md


Intro - Alex



IT职业发展和规划 - Feilong

View gist:6fc35271cb170d20d10858abbfd319c9
@import 'helpers/Utils.js';
@import 'libraries/View.js';
var onRun = function(context) {
var app = [NSApplication sharedApplication];
[app displayDialog:"Anything selected <img src=''/> " withTitle:"Exportabler"];
alex-zige /
Created Oct 1, 2015 — forked from dergachev/
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


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


Jenkins CI on OSX

Instructions on how to setup a secured Jenkins CI on a Mac.

Download & Install dependencies

All of these operations are done with your admin user.

Developer tools

Install the command line developer tools.

View gist:26d7c978a145b5c437a0
View gist:60e4f60d76512640b5a1
"posts": [
"id": 42,
"body": "lol?",
"title": null,
"created_at": "2015-02-19T11:52:15.000+13:00",
"reply_ids": [],
"like_ids": []
alex-zige / gist:98180088bdbfdf0d8f66
Last active Aug 29, 2015
Facebook authentication raw_info
View gist:98180088bdbfdf0d8f66
raw_info=#<OmniAuth::AuthHash email="" first_name="Zige" gender="male" id="10206022637909599" last_name="Li" link="" locale="en_US" name="Zige Li" timezone=13 updated_time="2013-12-08T05:35:05+0000" verified=true>> info=#<OmniAuth::AuthHash::InfoHash email="" first_name="Zige" image="" last_name="Li" name="Zige Li" urls=#<OmniAuth::AuthHash Facebook=""> verified=true> provider="facebook" uid="10206022637909599">
View gist:33fe6f20670562b5df5b
source ''
platform :ios, '7.0'
def import_pods
pod 'AFNetworking', '~> 1.3.2'
pod 'DCKeyValueObjectMapping'
pod 'ISO8601DateFormatter', '~> 0.7'
View gist:a1054743ee7026804657
// MCHWebViewController.m
// Gallipoli
// Created by Matt on 10/09/14.
// Copyright (c) 2014 Touchtech Limited. All rights reserved.
#import "MCHWebViewController.h"
alex-zige / gist:101751fc92d1410b65b8
Last active Aug 29, 2015
Rails 4 + Postgres + opsworks
View gist:101751fc92d1410b65b8

##Create RDS with postgres

Opsworks has a bug, even you registerd a postgres RDS, the adapter is still using 'mysql'


##Create mysql layer (fake) don't assign instances

You can’t perform that action at this time.