Skip to content

Instantly share code, notes, and snippets.

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Common Vagrant Commands

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
  • vagrant status -- outputs status of the vagrant machine
  • vagrant halt -- stops the vagrant machine
  • vagrant reload -- restarts vagrant machine, loads new Vagrantfile configuration
  • vagrant provision -- forces reprovisioning of the vagrant machine
@vuquangtam
vuquangtam / *github:gists*
Last active November 5, 2016 17:52 — forked from nazgob/gist:2367583
vagrant cheatsheet
a80364f... 07/12/16 23:57 public vagrant cheatsheet
a8f540d... 07/10/16 00:34 public Vagrant Cheat Sheet
@vuquangtam
vuquangtam / simplenote.js
Created December 21, 2016 03:40 — forked from nbqx/simplenote.js
SimpleNote API via node.js
var request = require('request'),
querystring = require('querystring');
var Note = function(key){
this.key = key;
}
Note.prototype = new process.EventEmitter();
var SimpleNote = function(email, passwd){
this.email = email;
@vuquangtam
vuquangtam / Learning.markdown
Created January 11, 2017 16:17 — forked from mattmcmanus/Learning.markdown
React Best Practices - Lessons learned after a couple months of using React

React Best Practices - Lessons learned after a couple months of using React

These are some things I've found helpful after doing React for a couple months. It's possible these practices are short sighted and will cause other problems, I just haven't hit those bumps in the road yet.

This list started after reading this phenomincal article on React Tips and Best Practicies.

1. Always define your propTypes. Always.

Think of propTypes as a love letter to whatever developer will work on a component after you. Your components should be as declarative as possible. React's error messaging is so clear and helpful and this will make things so much easier.

@vuquangtam
vuquangtam / gist:b779d3f9e79ff93117f9ed71406df4d0
Created February 8, 2017 11:56 — forked from jayjanssen/gist:5697813
Testing multicast with iperf
this is a sample of output:
root@percona-db-2:~# iperf -s -u -B 226.94.1.1 -i 1
------------------------------------------------------------
Server listening on UDP port 5001
Binding to local address 226.94.1.1
Joining multicast group 226.94.1.1
Receiving 1470 byte datagrams
UDP buffer size: 122 KByte (default)
------------------------------------------------------------
@vuquangtam
vuquangtam / README-Template.md
Created September 11, 2018 10:18 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@vuquangtam
vuquangtam / README.md
Created November 27, 2020 10:24 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.