Skip to content

Instantly share code, notes, and snippets.


André Albino Pereira andrealbinop

View GitHub Profile

Setup vagrant boxes

Since released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.

However, the guys at didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.


View nginx-pushstate-apps.conf
server {
listen *:80;
server_name localhost;
proxy_headers_hash_bucket_size 128;
proxy_headers_hash_max_size 1024;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Cache-Control no-cache;
andrealbinop / create-linux-vbox.ps1
Created Jan 21, 2016
Powershell script that creates tinycore linux vm with virtualbox
View create-linux-vbox.ps1
$PSDefaultParameterValues += @{'New-RegKey:ErrorAction' = 'Stop'}
$name = "softplan-javavm"
$repo = ""
$tinyCoreIso = "TinyCore-current.iso"
Write-Host "`n1. Criando maquina virtual`n"
VBoxManage createvm --name $name --register --basefolder .
VBoxManage modifyvm $name --ostype Linux --clipboard hosttoguest --nic1 nat --vram 16 --memory 1024 --acpi on --boot1 dvd
Write-Host "`n2. Criando HD com com 10gb de capacidade`n"
VBoxManage createmedium disk --filename "$name.vdi" --size 10240
andrealbinop /
Last active Jan 21, 2016
File with usefull shell commands
# fail on first error
set -e
# cd to the dir containing the script
cd $(readlink -f $(dirname $0))
# if file exists...