Skip to content

Instantly share code, notes, and snippets.

Working from home

Tam Nguyen ntamvl

Working from home
Block or report user

Report or block ntamvl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rudolfratusinski /
Last active Jan 30, 2020
Parallels Tools fix for Ubuntu 18.04 and other Linux distributions with Kernel version >= 4.15


  • In open Ubuntu 18.04 machine click Parallels Actions -> "Install Parallels Tools"

  • A "Parallels Tools" CD will popup on your Ubuntu desktop.

  • Open it by double mouse click, copy all the content to a new, empty directory on a desktop, name it for e.g. "parallels_fixed"

  • Open terminal, change directory to parallels_fixed (cd ~/Desktop/parallels_fixed)

  • Make command line installer executable (chmod +x install)

  • Change directory to "installer" (cd installer)

  • Make few other scripts executable: chmod +x installer.* *.sh prl_*

shortjared / list.txt
Last active Feb 13, 2020
List of AWS Service Principals
View list.txt
enqtran / [ReactJS] Detect Scrolls To Bottom
Last active Dec 10, 2019
[ReactJS] Detect Scrolls To Bottom
View [ReactJS] Detect Scrolls To Bottom
constructor(props) {
this.state = {
height: window.innerHeight,
message: 'not at bottom'
this.handleScroll = this.handleScroll.bind(this);
handleScroll() {
const windowHeight = "innerHeight" in window ? window.innerHeight : document.documentElement.offsetHeight;
evertonfraga /
Last active Jan 28, 2019
Set up an Ethereum development network in two minutes
Bhavdip /
Created Oct 6, 2016
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:
View Free O'Reilly

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x should do it)
  3. Run ./ and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
cheeaun /
Last active Jun 13, 2018
RedDotRubyConf 2016 links & resources 😘
View main.go
package main
import (
_ ""
View gist:b206d09c587e8fc6399e

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.

ChuckJHardy /
Last active Jul 30, 2019
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions

DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3

Create a Droplet

SSH into Root

$ ssh root@

Change Root Password

You can’t perform that action at this time.