Skip to content

Instantly share code, notes, and snippets.

View rayng86's full-sized avatar
πŸ‘¨β€πŸ’»

Raymond Ng rayng86

πŸ‘¨β€πŸ’»
View GitHub Profile
@rayng86
rayng86 / vim.md
Last active January 26, 2018 15:46
VIM

Quick Install VIM Solarized Colors

    https://github.com/flazz/vim-colorschemes

Now you need to create install .vimrc file:

    cd to home directory
    create vim .vimrc

Paste the Following:

    syntax enable

set background=dark

@rayng86
rayng86 / sass-from-cmdline.md
Last active August 29, 2015 14:01
SASS Command-line Quick Ref

##SASS sass --watch styles.scss:styles.css (if in the same folder)

This will look for folders named scss and generate css files to folder css
sass --watch scss/:css/

To have Sass minify all your CSS just use:

sass --watch scss/:css/ --style OPTION

i.e.
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
@rayng86
rayng86 / iTerm2-tips.md
Last active January 18, 2017 15:50
iTerm2 Quick Tips

##iTerm2 Quick Tips

###Tab navigation

open new tab Cmd + t
next tab Cmd + Shift + ]
previous tab Cmd + Shift + [

###Pane navigation

## How to hide API keys from github ##
1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while
retaining your commits: https://help.github.com/articles/remove-sensitive-data/
2. In the terminal, create a config.js file and open it up:
touch config.js
atom config.js
@rayng86
rayng86 / vim_cheatsheet.md
Created January 12, 2018 02:09 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@rayng86
rayng86 / rm_mysql.md
Created March 13, 2018 14:24 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

brew remove mysql

INCIDENT DATE - INCIDENT TYPE

Meeting

Waiving meetings

In some cases the IC might determine that a PM meeting for the incident isn't needed. If the IC decides to waive the meeting please replace the Meeting section with a note indicating the meeting has been waived (example: Meeting waived: Paul Mooring)

@rayng86
rayng86 / Immutable JS Examples
Created June 5, 2018 17:15 — forked from singhshivam/Immutable JS Examples
Immutable JS Examples
List()
var list = Immutable.List([1,2,3])
// [1, 2, 3]
List.isList()
Immutable.List.isList(list)
// true
List.of()
var list = Immutable.List.of(1,2,3);
@rayng86
rayng86 / sketch-never-ending.md
Created November 5, 2018 16:56 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com