Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# curl https://gist.githubusercontent.com/jeremyje/d9d044c16a66a5a9d1dbb3c8743fafc6/raw/install-dev.sh | bash 2>&1 | tee output.txt
PrepareInstallation() {
echo "========================================="
echo "Preparation"
echo "========================================="
mkdir -p packages
cd packages
@jeremyje
jeremyje / .tmux.conf
Last active January 16, 2021 21:18
Tmux Configuration (Not Tried)
# curl -o $HOME/.tmux.conf -L https://gist.githubusercontent.com/jeremyje/1323c134ed6a479e778718f456393b5f/raw/.tmux.conf
# http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
######################
### DESIGN CHANGES ###
######################
# panes
set -g pane-border-fg black
set -g pane-active-border-fg brightred
@jeremyje
jeremyje / install-cloud9.sh
Last active December 19, 2017 05:47
Installs Docker and Cloud 9 on Ubuntu
#!/bin/bash
# curl https://gist.githubusercontent.com/jeremyje/bc76c76b5e7cd6953f985156d331eaa5/raw/install-cloud9.sh | bash -s $HOME/workspace
CONTAINER_NAME=cloud9
CONTAINER_IMAGE=jeremyje/dev
WORKSPACE=$1
shift
mkdir -p ${WORKSPACE}
docker pull ${CONTAINER_IMAGE}
@jeremyje
jeremyje / install-docker.sh
Last active October 31, 2022 01:09
Install Docker
#!/bin/bash
# curl https://gist.githubusercontent.com/jeremyje/5d2b3746f4454ef24aaa723e208b7a50/raw/install-docker.sh | bash
# Based on https://docs.docker.com/install/linux/docker-ce/debian/
function InstallForDebian {
sudo apt-get update
sudo apt-get -y remove docker docker-engine docker.io
sudo apt-get -y install \
apt-transport-https \
@jeremyje
jeremyje / dashboard.sh
Last active February 28, 2022 13:05
Install Kubernetes
#!/bin/bash
# curl https://gist.githubusercontent.com/jeremyje/14e26148909734ebe1d6395cc8b0e156/raw/dashboard.sh | bash
# https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/
# https://github.com/kubernetes/dashboard
bash -c "cat >> dashboard.yaml" << EOF
apiVersion: v1
kind: ServiceAccount
metadata:
name: kubernetes-dashboard
@jeremyje
jeremyje / docker-purge.sh
Last active April 11, 2019 06:21
Purge all Docker Containers and Images
#!/bin/bash
# curl https://gist.githubusercontent.com/jeremyje/9e58e2c958351df4f600a86a1e94dae7/raw/docker-purge.sh | bash
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q) -f
docker rmi $(docker images -a -q) -f
@jeremyje
jeremyje / Dockerfile
Last active June 5, 2019 21:59
Build Image for Magic Modules
FROM ubuntu
RUN apt-get update
RUN apt-get install -qq -y sudo curl software-properties-common
RUN mkdir -p /gopath /workspace
#RUN mkdir -p /gopath /workspace /home/magicmodules \
# && useradd --shell /bin/bash magicmodules --home-dir /home/magicmodules --groups sudo \
# && echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \
# && curl -L https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh > /home/magicmodules/.bash_git \
#!/bin/bash
# curl -L https://gist.githubusercontent.com/jeremyje/bc5a8f8bdfec1ee79f2fec82ff34f600/raw/tmux-conf.sh | bash
# Download https://github.com/gpakosz/.tmux
curl -o ~/.tmux.conf -L https://raw.githubusercontent.com/gpakosz/.tmux/master/.tmux.conf && curl -o ~/.tmux.conf.local -L https://raw.githubusercontent.com/gpakosz/.tmux/master/.tmux.conf.local
@jeremyje
jeremyje / codecahedron.sh
Last active April 21, 2020 05:34
Checkout Codecahedron Repositories
#!/bin/bash
# curl -L https://gist.githubusercontent.com/jeremyje/656b3d58f303594601723de7a0542509/raw/codecahedron.sh | bash
set -e
function Checkout {
REPO=$1
git clone [email protected]:jeremyje/${REPO}.git
cd ${REPO}
git remote add upstream [email protected]:codecahedron/${REPO}.git
git fetch origin
@jeremyje
jeremyje / osx.sh
Created April 11, 2020 18:36
Debug OSX Unzipping
#!/bin/bash
ARCHIVES_DIR=$PWD/archives
TOOLCHAIN_DIR=$PWD/toolchain
TOOLCHAIN_BIN=${TOOLCHAIN_DIR}/bin
THIRDPARTY_DIR=$PWD/third_party
mkdir -p ${ARCHIVES_DIR}/
curl -o ${ARCHIVES_DIR}/protoc.zip -L https://github.com/protocolbuffers/protobuf/releases/download/v3.11.4/protoc-3.11.4-osx-x86_64.zip
touch ${ARCHIVES_DIR}/protoc.zip