Skip to content

Instantly share code, notes, and snippets.

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

Raymond Ng rayng86

πŸ‘¨β€πŸ’»
View GitHub Profile

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@rayng86
rayng86 / batch-delete-gmail-emails.js
Created June 1, 2023 14:41 — forked from gene1wood/batch-delete-gmail-emails.js
A Google Apps Script script to bulk delete large amounts of email in Gmail while avoiding the error #793 which Gmail encounters normally
/*
This script, when used with Google Apps Scripts, will delete 400 emails and
can be triggered to run every few minutes without user interaction enabling you
to bulk delete email in Gmail without getting the #793 error from Gmail.
Google returns a maximum of 500 email threads in a single API call.
This script fetches 400 threads in case 500 threads is causing timeouts
Configure the search query in the code below to match the type of emails
you want to delete
Hex Opacity Values
100% β€” FF
95% β€” F2
90% β€” E6
85% β€” D9
80% β€” CC
75% β€” BF
70% β€” B3
65% β€” A6
@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

@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);

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 / 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

@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
## 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 / 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