Skip to content

Instantly share code, notes, and snippets.

View 6220119's full-sized avatar
🌴

Nguyen Vu Cuong (Ralph) 6220119

🌴
View GitHub Profile

FWIW: I didn't produce the content present here. I've just copy-pasted it from somewhere over the Internet, but I cannot remember exactly the original source. I was also not able to find the author's name, so I cannot give him/her the proper credit.


Effective Engineer - Notes

What's an Effective Engineer?

@6220119
6220119 / outlook_email.py
Created February 8, 2018 03:02 — forked from ITSecMedia/outlook_email.py
Python: Create an Email with Outlook
# http://itsecmedia.com/blog/post/2016/python-send-outlook-email/
import win32com.client
from win32com.client import Dispatch, constants
const=win32com.client.constants
olMailItem = 0x0
obj = win32com.client.Dispatch("Outlook.Application")
newMail = obj.CreateItem(olMailItem)
newMail.Subject = "I AM SUBJECT!!"
@6220119
6220119 / reinvent.md
Created February 23, 2018 10:59 — forked from henrysher/reinvent.md
link for reinvent slides
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
const fs = require("fs");
const moment = require("moment");
const _ = require("lodash");
const path = require("path");
const agent = require("superagent-promise")(require("superagent"), Promise);
//Lang Codes https://ctrlq.org/code/19899-google-translate-languages
const YANDEX_API_KEYS = process.env.TRANSLATION_API_KEY;
const inputFile = "./data/en.json";
@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