Skip to content

Instantly share code, notes, and snippets.

View jpoley's full-sized avatar
♥️
Learning

Jason Poley jpoley

♥️
Learning
View GitHub Profile
@jpoley
jpoley / git-get-all.sh
Created June 5, 2020 18:33
git-get-all.sh
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
@jpoley
jpoley / cloner.sh
Created April 12, 2020 18:26
github clone view scripts for keeping projects in sync
#!/bin/bash
input="gh-repo.txt"
while IFS= read -r line
do
echo "git clone $line"
git clone $line
done < "$input"
@jpoley
jpoley / rook-ceph.sh
Last active July 20, 2019 01:22
rook ceph
git clone https://github.com/arashkaffamanesh/kafka-on-kubernetes
cd kafka-on-kubernetes
kubectl create -f rook-storageclass.yaml
kubectl patch storageclass rook-ceph-block -p '{"metadata": {"annotations":{“storageclass.kubernetes.io/is-default-class":"true"}}}'
kubectl create -f rook-operator.yaml
kubectl get pods -n rook-ceph-system
kubectl create -f rook-ceph-cluster.yaml
kubectl create -f rook-ceph-toolbox.yaml -n rook-ceph
@jpoley
jpoley / vagrant-cheat-sheet.md
Created March 17, 2019 00:45 — forked from wpscholar/vagrant-cheat-sheet.md
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@jpoley
jpoley / base-brew.sh
Last active January 21, 2019 01:11
base-brew.sh
#basic setup for developer mac
brew install htop
brew install tree
brew install wget
brew install nmap
brew install links
brew install geoip
brew install watch
brew install nodejs
@jpoley
jpoley / vim.md
Created January 21, 2019 00:47 — forked from vallettea/vim.md
Configure vim on mac

Install pathogen and use a proper directory structure

cd
mkdir -p .vim/{autoload,colors,syntax,plugin,spell,config}
mv .vimrc .vim/vimrc
ln -s .vim/vimrc .vimrc
cd ~/.vim
git clone https://github.com/tpope/vim-pathogen.git pathogen
cd autoload
@jpoley
jpoley / aws-docs.sh
Created January 21, 2019 00:46
aws-docs.sh
mkdir awsdocs
cd awsdocs
git clone https://github.com/awsdocs/amazon-eks-user-guide.git
git clone https://github.com/awsdocs/aws-doc-sdk-examples.git
git clone https://github.com/awsdocs/aws-organizations-docs.git
git clone https://github.com/awsdocs/amazon-ecs-developer-guide.git
git clone https://github.com/awsdocs/aws-sam-developer-guide.git
git clone https://github.com/awsdocs/amazon-vpc-user-guide.git
git clone https://github.com/awsdocs/aws-cloud9-user-guide.git
git clone https://github.com/awsdocs/aws-transit-gateway-guide.git
@jpoley
jpoley / zsh-install-mac.sh
Created January 21, 2019 00:44
zsh-install-mac.sh
brew cask install iterm2
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
brew install zsh-syntax-highlighting
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# verify zsh is here and then run this...
#sudo dscl . -create /Users/$USER UserShell /bin/zsh
@jpoley
jpoley / init.sh
Last active December 29, 2023 07:05
mkdir cncf
cd cncf
git clone https://github.com/kubernetes/kubernetes.git
git clone https://github.com/envoyproxy/envoy.git
git clone https://github.com/prometheus/prometheus.git
git clone https://github.com/linkerd/linkerd2-proxy.git
git clone https://github.com/linkerd/linkerd2.git
git clone https://github.com/linkerd/linkerd2-proxy-api.git
git clone https://github.com/grpc/grpc-go.git
git clone https://github.com/grpc/grpc-java.git
@jpoley
jpoley / k8s-pi.md
Created December 22, 2018 20:32 — forked from alexellis/k8s-pi.md
K8s on Raspbian

Kubernetes on (vanilla) Raspbian Lite

Yes - you can create a Kubernetes cluster with Raspberry Pis with the default operating system called Raspbian. This means you can carry on using all the tools and packages you're used to with the officially-supported OS.

This is part of a blog post Serverless Kubernetes home-lab with your Raspberry Pis written by Alex Ellis.

Copyright disclaimer: Please provide a link to the post and give attribution to the author if you plan to use this content in your own materials.

Pre-reqs: