Skip to content

Instantly share code, notes, and snippets.

View 6220119's full-sized avatar
🌴

Nguyen Vu Cuong (Ralph) 6220119

🌴
View GitHub Profile
git config --global alias.st "status -s -b"
git config --global alias.di "diff"
git config --global alias.co "checkout"
git config --global alias.ci "commit"
git config --global alias.br "branch"
git config --global alias.l "log --online --decorate --graph"
git config --global alias.fixup "commit --amend -C HEAD"
git config --global alias.timeline "log --graph --branches --pretty=online --decorate"
git config --global alias.untracked-files "ls-files -o --exclude-standard"
git config --global alias.ignored-files "ls-files --others -i --exclude-standard"
@6220119
6220119 / react-typescript.md
Created March 25, 2018 11:44 — forked from juhaelee/react-typescript.md
React + Typescript Cheatsheet

React + Typescript Cheatsheet

Setup

If you use atom... download & install the following packages:

What are Typescript type definition files? (*.d.ts)

@6220119
6220119 / vort3x.md
Created August 12, 2018 12:21 — forked from cam8001/vort3x.md
Vortex / IKBC Pok3r keyboard guide for Mac OS
@6220119
6220119 / arcanist_cheatsheet.md
Created August 23, 2018 03:49 — forked from tony612/arcanist_cheatsheet.md
arcanist cheatsheet
  • create tasks T{NNNN} asign them
  • create a branch with name like "T{NNNN}-boo-hoo"
  • git checkout -b T1234-boo-foo
  • commit changes on that branch until it gets ready to be reviewed
  • git commit -am 'first'
  • git commit -am 'now it works'
  • check if it's lint free (NOTE: it runs lint against only modified files)
  • arc lint
  • push a review request to the server. This will create a diff with id D{NNNN}
  • arc diff
@6220119
6220119 / Install PIP to user site on macOS.md
Created August 28, 2018 03:20 — forked from haircut/Install PIP to user site on macOS.md
How to install and use pip without sudo or admin on macOS

Install and use pip on macOS without sudo / admin access

Most recently tested on macOS Sierra (10.12.6)

  1. Download the installation script; curl https://bootstrap.pypa.io/get-pip.py -o ~/Downloads/get-pip.py
  2. Run the installation, appending the --user flag; python ~/Downloads/get-pip.py --user. pip will be installed to ~/Library/Python/2.7/bin/pip
  3. Make sure ~/Library/Python/2.7/bin is in your $PATH. For bash users, edit the PATH= line in ~/.bashrc to append the local Python path; ie. PATH=$PATH:~/Library/Python/2.7/bin. Apply the changes, source ~/.bashrc.
  4. Use pip! Remember to append --user when installing modules; ie. pip install <package_name> --user

Note

@6220119
6220119 / index.js
Created September 12, 2018 05:38 — forked from pioug/index.js
Errors to ignore on Sentry
const ignoreErrors: [
/__show__deepen/,
/Access is denied/,
/anonymous function: captureException/,
/Blocked a frame with origin/,
/console is not defined/,
/event is not defined/,
/feedConf/,
/MyIPhoneApp_ModifyShowModalDialog/,
/vid_mate_check is not defined/,
# Google's Language Map
ach : Acoli
af : Afrikaans
ak : Akan
am : አማርኛ
ar : العربية
az : azərbaycan
ban : Balinese
be : беларуская
bem : Ichibemba
// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class
@6220119
6220119 / install_ruby_with_rbenv.md
Created June 8, 2020 07:42 — forked from stonehippo/install_ruby_with_rbenv.md
Installing a new Ruby with rbenv on Mac OS

Install a new Ruby with rbenv on Mac OS (and make yourself a superhero)

If you're doing stuff with Ruby on a Mac, e.g. installling Jekyll or something, by default you'll end up having to use the sudo command to do stuff, since the permission to modify the default config is not available to your user account.

This sucks and should be avoided. Here's how to fix that.

Installing a new Ruby

To make this better, we are going install a new, custom Ruby. This used to be a big, scary thing, but thanks to the awesome tools Homebrew and rbenv, it's a snap.*

A word of warning: you will have to use Terminal to install this stuff. If you are uncomfortable with text, words, and doing stuff with your computer beyond pointing and hoping, this may not work well for you. But if that's the case, I'm not sure why you were trying to use Ruby in the first place.

@6220119
6220119 / sampleREADME.md
Created July 5, 2020 11:02 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here