Skip to content

Instantly share code, notes, and snippets.

View xrdp.sh
#!/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 Aug 19, 2020
a cloud dev machine
View ubuntu18-dev.sh
#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
View .alias
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 Jan 14, 2018
minikube with helm
View setup.sh
# 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
View gist:2e2b8499b50930da33c2bae0a016daa7
#!/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'
View docker-ce-ubuntu-install.sh
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
install stuff on home pc
View choc_install.cmd
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
You can’t perform that action at this time.