Skip to content

Instantly share code, notes, and snippets.

View troy0820's full-sized avatar
💭
Thinking of a master plan....... 'Cause ain't nothin' but sweat inside my hand

Troy Connor troy0820

💭
Thinking of a master plan....... 'Cause ain't nothin' but sweat inside my hand
View GitHub Profile
@HipsterBrown
HipsterBrown / .bash_profile
Last active April 30, 2019 17:55
Some handy bash functions for working in a git repo
# usage: load your local environment with a .env file or point to another file
# dotenv // load .env by default
# dotenv .env.staging // load the environment variables in .env.staging
dotenv() {
export $(cat ${1:-.env} | xargs);
}
# dynamically generate branch completion list
_list_branch_completions() {
COMPREPLY=($(compgen -W "$(git branch --list --sort=refname | tr -d '*')" "${COMP_WORDS[1]}"))
@IanColdwater
IanColdwater / twittermute.txt
Last active May 23, 2024 18:37
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@sanketsudake
sanketsudake / kind-kubernetes-metrics-server.md
Last active April 5, 2024 07:06
Running metric-server on Kind Kubernetes

I have created a local Kubernetes cluster with kind. Following are changes you need to get metric-server running on Kind.

Deploy latest metric-server release.

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.5.0/components.yaml

Within existing arguments to metric-server container, you need to add argument --kubelet-insecure-tls.