Skip to content

Instantly share code, notes, and snippets.

Avatar

André Albino Pereira andrealbinop

View GitHub Profile
@andrealbinop
andrealbinop / shell-util-commands.sh
Last active Jan 21, 2016
File with usefull shell commands
View shell-util-commands.sh
#!/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 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 = "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
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;
View setup-modernie-vagrant-boxes.md

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