Skip to content

Instantly share code, notes, and snippets.

View andrealbinop's full-sized avatar

André Albino Pereira andrealbinop

View GitHub Profile
@andrealbinop
andrealbinop / setup-modernie-vagrant-boxes.md
Last active May 28, 2023 01:54
Setup modern.ie vagrant boxes

Setup modern.ie vagrant boxes

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

However, the guys at modern.ie 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.

Pre-requisites

@andrealbinop
andrealbinop / shell-util-commands.sh
Last active January 21, 2016 15:07
File with usefull shell commands
#!/bin/bash
# fail on first error
set -e
# cd to the dir containing the script
cd $(readlink -f $(dirname $0))
# if file exists...
@andrealbinop
andrealbinop / create-linux-vbox.ps1
Created January 21, 2016 01:47
Powershell script that creates tinycore linux vm with virtualbox
$PSDefaultParameterValues += @{'New-RegKey:ErrorAction' = 'Stop'}
$name = "softplan-javavm"
$repo = "http://tinycorelinux.net/6.x/x86/release"
$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
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;