Skip to content

Instantly share code, notes, and snippets.

:octocat:
building something useful without building it alone

Julien Bisconti veggiemonk

View GitHub Profile
View 1-create_halyard_kubeconfig.sh
# Specify the name of the kubernetes context that has permissions to create the service account in your
# target cluster and namespace. To get the list of contexts, you can run "kubectl config get-contexts"
export CONTEXT="$(kubectl config current-context)"
# Enter the namespace that you want to install Spinnaker in. This can already exist, or can be created.
export NAMESPACE="spinnaker"
# Enter the name of the service account you want to create. This will be created in the target namespace
export SERVICE_ACCOUNT_NAME="spinnaker"
View halyard_pod_setup.sh
cd ~
mkdir -p $HOME/bin
# KUBECTX
git clone https://github.com/ahmetb/kubectx.git ~/.kubectx
ln -s $HOME/.kubectx/kube $HOME/bin/
ln -s $HOME/.kubectx/kubectx $HOME/bin/
# MICRO
wget https://github.com/zyedidia/micro/releases/download/nightly/micro-1.4.2-dev.61-linux64.tar.gz
@veggiemonk
veggiemonk / git.sh
Last active Apr 2, 2019
git fixup autosquash workflow
View git.sh
# source https://stackoverflow.com/questions/3103589/how-can-i-easily-fixup-a-past-commit?noredirect=1&lq=1
git add .
git commit --fixup HEAD
git rebase -i --autosquash HEAD~2
@veggiemonk
veggiemonk / get_jenkins_plugins.js
Created Apr 2, 2019
get all the plugins in jenkins
View get_jenkins_plugins.js
// run this in the web console when logged in
Array.from(document.querySelectorAll('tr.plugin'))
.map(x => [x.attributes.name.textContent, x.querySelector('.excerpt').textContent])
@veggiemonk
veggiemonk / ASS.md
Created Mar 29, 2019 — forked from anonymous/ASS.md
Acronyms Seriously Suck - Elon Musk
View ASS.md

From time to time, Musk will send out an e-mail to the entire company to enforce a new policy or let them know about something that's bothering him. One of the more famous e-mails arrived in May 2010 with the subject line: Acronyms Seriously Suck:

There is a creeping tendency to use made up acronyms at SpaceX. Excessive use of made up acronyms is a significant impediment to communication and keeping communication good as we grow is incredibly important. Individually, a few acronyms here and there may not seem so bad, but if a thousand people are making these up, over time the result will be a huge glossary that we have to issue to new employees. No one can actually remember all these acronyms and people don't want to seem dumb in a meeting, so they just sit there in ignorance. This is particularly tough on new employees.

That needs to stop immediately or I will take drastic action - I have given enough warning over the years. Unless an acronym is approved by me, it should not enter the SpaceX glossary.

View m3u8_downloader.py
from sys import argv
import os
import re
import subprocess
import urllib.request
import urllib.parse
import youtube_dl
from gi.repository import Notify
@veggiemonk
veggiemonk / README.md
Last active Feb 14, 2019
CKAD exam preparation
View README.md
View new-env.sh
#!/bin/bash
set -e
print_usage(){
echo "USAGE:"
echo "./new-env.sh NEW_ENV_NAME REGION [stage|prod|example]"
echo "example: ./new-env.sh dev ap-southeast-2 stage"
echo "REGION is the same for the source and destination environment"
echo "[stage|prod|example] are the source environment that will be copied. "
@veggiemonk
veggiemonk / delete-versioned-s3.sh
Last active Oct 25, 2018
delete versioned s3 bucket
View delete-versioned-s3.sh
#!/bin/bash
set -e
print_usage(){
echo "USAGE:"
echo
echo "PROFILE=customer ./delete-s3-bucket.sh [list | all | 'bucket_name']"
echo
echo
}
You can’t perform that action at this time.