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
#!/usr/bin/env bash | |
#xrdp | |
apt install -y xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils xrdp | |
systemctl status xrdp | |
adduser xrdp ssl-cert |
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
#for ENOSPC problem, run: | |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
apt update | |
apt-get install -y git apt-transport-https gnupg fish vim dos2unix zip curl wget | |
#nodejs | |
curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n | |
bash n latest | |
#optional dev |
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
alias serverless='~/work/serverless/bin/serverless' | |
alias sls=serverless | |
#tools with docker | |
alias aws='docker run --rm -t $(tty &>/dev/null && echo "-i") -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}" | |
-v "$(pwd):/project" mesosphere/aws-cli' | |
alias npmd='docker run --rm -v "$(pwd):/usr/src/app" node:8.11.2-onbuild npm' | |
alias gradled='docker run --rm -v "$PWD":/home/gradle/project -w /home/gradle/project gradle:4.7.0-jdk8 gradle' | |
alias dockenv='eval $("docker-machine" env)' |
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
# download binaries | |
wget https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/windows/amd64/kubectl.exe | |
mv kubectl.exe mv /usr/local/bin/ | |
wget https://github.com/kubernetes/minikube/releases/download/v0.24.1/minikube-windows-amd64 | |
mv minikube-windows-amd64 /usr/local/bin/minikube.exe | |
wget https://storage.googleapis.com/kubernetes-helm/helm-v2.7.2-windows-amd64.tar.gz | |
tar xvzf helm-v2.7.2-windows-amd64.tar.gz | |
mv windows-amd64/helm.exe /usr/local/bin/ | |
# start minikube |
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
#!/bin/sh | |
set -e | |
# | |
# This script is meant for quick & easy install via: | |
# 'curl -sSL https://get.docker.com/ | sh' | |
# or: | |
# 'wget -qO- https://get.docker.com/ | sh' | |
# | |
# For test builds (ie. release candidates): | |
# 'curl -fsSL https://test.docker.com/ | sh' |
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
sudo apt update | |
sudo apt-get -y install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" |
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
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin |