Skip to content

Instantly share code, notes, and snippets.

View vinceyuan's full-sized avatar

Vince Yuan vinceyuan

View GitHub Profile
@vinceyuan
vinceyuan / redis-server-per-project
Last active January 30, 2020 05:21
Init script to start/stop redis-server for CentOS or amazon ec2 linux ami. You can run multiple redis-server on one server with this script. Just copy and replace 'per-project' with your project name in this file for each project.
#!/bin/sh
# From - http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
#
# redis - this script starts and stops the redis-server daemon
# Originally from - https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
# Modified by Vince Yuan https://gist.github.com/vinceyuan/9667435
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
@vinceyuan
vinceyuan / .vimrc
Created May 30, 2016 14:52
My vim configuration
execute pathogen#infect()
syntax on
filetype plugin indent on
set number
set rnu
set tabstop=4 shiftwidth=4 smarttab
colorscheme molokai
set cursorline " Highlight current cursor line
set autoread " Auto reload when file changed by other programs
@vinceyuan
vinceyuan / RSTimingFunction.h
Created January 15, 2017 14:31 — forked from raphaelschaad/RSTimingFunction.h
All the cool animation curves from `CAMediaTimingFunction` but not limited to use with CoreAnimation. See what you can do with cubic Bezier curves here: http://netcetera.org/camtf-playground.html To get started just "Download Gist", throw the .h and .m files into your Xcode project and you're good to go!
//
// RSTimingFunction.h
//
// Created by Raphael Schaad on 2013-09-28.
// This is free and unencumbered software released into the public domain.
//
#import <Foundation/Foundation.h>