Skip to content

Instantly share code, notes, and snippets.

adi aofry

Block or report user

Report or block aofry

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
aofry /
Last active Sep 15, 2019
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 install -y vim git npm nodejs curl default-jdk wget dos2unix
apt install -y
npm i -g n
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 /
Last active Jan 14, 2018
minikube with helm
# download binaries
mv kubectl.exe mv /usr/local/bin/
mv minikube-windows-amd64 /usr/local/bin/minikube.exe
tar xvzf helm-v2.7.2-windows-amd64.tar.gz
mv windows-amd64/helm.exe /usr/local/bin/
# start minikube
View gist:2e2b8499b50930da33c2bae0a016daa7
set -e
# This script is meant for quick & easy install via:
# 'curl -sSL | sh'
# or:
# 'wget -qO- | sh'
# For test builds (ie. release candidates):
# 'curl -fsSL | sh'
sudo apt update
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl -fsSL | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] \
$(lsb_release -cs) \
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(''))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
You can’t perform that action at this time.