Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

#!/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
@aofry
aofry / ubuntu18-dev.sh
Last active August 19, 2020 05:35
a cloud dev machine
#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
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)'
@aofry
aofry / setup.sh
Last active January 14, 2018 11:38
minikube with helm
# 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
#!/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'
@aofry
aofry / docker-ce-ubuntu-install.sh
Created July 3, 2017 18:09 — forked from daqing/docker-ce-ubuntu-install.sh
Install Docker-CE on ubuntu
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"
@aofry
aofry / choc_install.cmd
Created May 8, 2014 17:19
install stuff on home pc
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin