Skip to content

Instantly share code, notes, and snippets.

Working from home

Tam Nguyen ntamvl

Working from home
View GitHub Profile
View [ReactJS] Detect Scrolls To
constructor(props) {
    this.state = {
        height: window.innerHeight,
        message: 'not at bottom'
    this.handleScroll = this.handleScroll.bind(this);
ntamvl /
Created May 30, 2018 — forked from rudolfratusinski/
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_*

ntamvl /
Created Oct 4, 2017 — forked from evertonfraga/
Set up an Ethereum development network in two minutes
ntamvl /
Created Jun 14, 2017 — forked from Bhavdip/
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:
View postgresql_setup_hstore.rb
class SetupHstore < ActiveRecord::Migration
def self.up
enable_extension "hstore"
def self.down
disable_extension "hstore"
ntamvl / rabbit.rake
Created Jul 11, 2016 — forked from johnkellar/rabbit.rake
RabbitMQ Configuration Rake Tasks
View rabbit.rake
namespace :rabbit do
def get_queues
`#{@base_command} list queues | awk '{print$4}' | grep -vw '|' | grep -vw 'name' | awk 'NF'`
def get_queues_with_count
`#{@base_command} list queues | awk '{print$18, $4}' | grep -vw '|' | grep -vw 'name' | awk 'NF'`
View main.go
package main
import (
_ ""
ntamvl /
Created Jun 21, 2016 — forked from stevenyap/
Mina - Faster deployment than Capistrano!!!
ntamvl /
Created Mar 4, 2016 — forked from dominicsayers/
Configuring ElasticSearch to use less memory

What I actually did


elasticsearch hard memlock 100000


ntamvl / rspec_html.rake
Created Jan 11, 2016 — forked from jonahoffline/rspec_html.rake
Rake Task for generating a RSpec report in html.
View rspec_html.rake
require 'rspec/core/rake_task' do |t|
t.rspec_opts = '--format html --out reports/rspec_results.html'
namespace :rspec_report do
desc 'Run all specs and generate RSpec report in HTML'
task :html => :spec