Skip to content

Instantly share code, notes, and snippets.

View hemanth22's full-sized avatar

Hemanth B hemanth22

View GitHub Profile
@hemanth22
hemanth22 / Vagrant, FTP
Created October 9, 2018 06:55 — forked from miguelangelramirez/Vagrant, FTP
Vagrant FTP #vagrant #ftp
Vagrant's sftp to be available on port 2222. So, from Filezilla, I use:
host: 127.0.0.1 //or your projects IP
port: 2222
protocol: sftp
logon type: normal (with the default user and password being "vagrant")
## Vagrantfile
config.vm.provider :virtualbox do |vb|
# start windowed (default is headless)
vb.gui = true
vb.customize [ "modifyvm", :id, "--memory", "512"]
vb.name = "#{NAME}"
@hemanth22
hemanth22 / Vagrantfile
Created October 9, 2018 06:55 — forked from lorn/Vagrantfile
Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |vb|
vb.name = "app.intranet"
vb.customize [ 'modifyvm', :id, '--memory', '512' ]
vb.customize [ 'modifyvm', :id, '--cpus', '1' ]
end
@hemanth22
hemanth22 / Vagrantfile
Created October 9, 2018 06:56 — forked from musaid/Vagrantfile
Vagrants
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.ssh.username = "vagrant"
config.ssh.password = "vagrant"
config.vm.box = "trusty64"
@hemanth22
hemanth22 / VAGRANT-Cheat-Sheet.md
Created October 9, 2018 07:30 — forked from carlessanagustin/VAGRANT-Cheat-Sheet.md
This is a VAGRANT cheat sheet

Vagrant Cheat Sheet

add image

local

$ vagrant box add {title} {url}
$ vagrant init {title}
$ vagrant up
function addTwoNumbers(x, y) {
return x + y;
}
console.log(addTwoNumbers(5, 1));
function addTwoNumbers(x, y) {
return x + y;
}
function testAddTwoNumbers() {
var x = 5;
var y = 1;
var sum1 = x + y;
var sum2 = addTwoNumbers(x, y);
function addTwoNumbers(x, y) {
return x + y;
}
function testAddTwoNumbers() {
// 1. ARRANGE
var x = 5;
var y = 1;
var sum1 = x + y;
var assert = {
equal: function(firstValue, secondValue) {
if (firstValue != secondValue)
throw new Error('Assert failed, ' + firstValue + ' is not equal to ' + secondValue + '.');
}
};
function addTwoNumbers(x, y) {
return x + y;
}
var assert = require('assert');
function addTwoNumbers(x, y) {
return x + y;
}
function testAddTwoNumbers() {
var x = 5;
var y = 1;
var sum1 = x + y;