View wsl2-setup-config.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Enable hyper-v and wsl | |
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart | |
## Download distro of choice (https://docs.microsoft.com/en-us/windows/wsl/install-manual) | |
Invoke-WebRequest https://aka.ms/wsl-ubuntu-1804 -OutFile ubuntu-18-04.appx -UseBasicParsing | |
Add-AppxPackage .\ubuntu-18-04.appx | |
View terraform-statefile-bucket.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "aws" { | |
region = "eu-west-2" | |
profile = "xxx" | |
} | |
variable "env" { | |
description = "Name of AWS environment" | |
type = string | |
default = "xxx" | |
} |
View install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install brew | |
sudo apt install linuxbrew-wrapper | |
sudo apt install curl | |
## maunual download of chrome | |
## isntall vscode from snap | |
sudo apt install python3.8 | |
sudo apt install python3-pip |
View ubuntu-install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install brew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
## install k8s tools | |
brew install stern | |
brew install kube-ps1 | |
brew install kubectx | |
brew install derailed/popeye/popeye | |
brew install derailed/k9s/k9s | |
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp |
View pg_admin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker pull dpage/pgadmin4 | |
docker run -p 65432:80 -e 'PGADMIN_DEFAULT_EMAIL=user@domain.com' -e 'PGADMIN_DEFAULT_PASSWORD=SuperSecret' -d dpage/pgadmin4 |
View k8s-cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## testing with busybox (runs interactive shell in busybox pod in your namespace. dies on exit.) | |
kubectl run -i --tty busybox --image=busybox --restart=Never -- sh | |
### in busybox command prompt you can test mysql connection with | |
<servicename> <seriveport> | |
View docker build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# scripts to build a dockerfile | |
docker build myapp:v2 . |
View docker-compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## run a docker-compose | |
docker-compose up | |
## run specific file | |
docker-compose -f /tests/docker-compose.yml up | |
## run detatched | |
docker-compose up -d | |
## run a single container from the docker-compose |
View Linux Desktop Config (OpenSUSE with gnome)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Primary Desktop Apps | |
sudo su - | |
#updates | |
zypper update | |
## zypper --non-interactive install PACKAGE_NAME | |
# power management tools |
View Azure-DevOps-BuildTemplate-Folder-Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources: | |
repositories: | |
- repository: templates #Name of repo | |
type: git | |
name: templates | |
jobs: | |
- template: terraform/azureterraform.yml@templates # Name of folder (Terraform in the example) and name of file (azureterraform.yml in the example) |
NewerOlder