Skip to content

Instantly share code, notes, and snippets.

View pvoliveira's full-sized avatar

Paulo Oliveira pvoliveira

View GitHub Profile
@pvoliveira
pvoliveira / ubuntu-20.04-wsl2.ps1
Created October 12, 2022 22:42 — forked from djfdyuruiry/ubuntu-20.04-wsl2.ps1
Ubuntu 20.04 in WSL 2
## change to your username
$user="wsl-user"
# download latest 20.04 release
curl --location `
--remote-name `
"https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64-wsl.rootfs.tar.gz"
# import into WSL 2
wsl --import `
@pvoliveira
pvoliveira / boxstarter.ps1
Last active January 8, 2018 13:01 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
#!/bin/bash
set -e
GVERSION="1.10.1"
GFILE="go$GVERSION.linux-amd64.tar.gz"
GOPATH="$HOME/go"
GOROOT="/usr/local/go"
if [ -d $GOROOT ]; then
echo "Installation directories already exist $GOROOT"