This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
split -b 1000m postgresql.log.2020-12-11-03 postgresql.log.2020-12-11-03 | |
# https://github.com/darold/pgbadger | |
pgbadger postgresql.log.2020-12-11-03am |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cleanup | |
brew uninstall --force helmfile helm | |
# Install helmfile latest with latest helm | |
brew install helmfile | |
# Install an old version of helm2 | |
curl https://get.helm.sh/helm-v2.14.3-darwin-amd64.tar.gz | |
tar -zxvf helm-v2.14.3-darwin-amd64.tar.gz | |
cp darwin-amd64/helm /usr/local/bin/helm2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
brew uninstall kubernetes-cli | |
# check here to find the version you want: | |
# https://github.com/Homebrew/homebrew-core/commits/master/Formula/kubernetes-cli.rb | |
# kubectl 1.15.3 | |
curl https://raw.githubusercontent.com/Homebrew/homebrew-core/7ee32113351bbd913b90f9578bcd52dfe85d675e/Formula/kubernetes-cli.rb -o kubernetes-cli.rb | |
brew install kubernetes-cli.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat << EOF > /home/pi/.config/lxsession/LXDE-pi/autostart | |
@xset -dpms | |
@xset s off | |
/usr/bin/omxplayer --loop /home/pi/video.mp4 | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl uncordon <node name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
output_dir=~/Downloads/ipod | |
map_dir="${output_dir}/map" | |
mkdir -p "${map_dir}" &> /dev/null | |
if [[ $(uname -s) != "Darwin" ]]; then | |
echo "ERROR: this only works for OS X" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Courtesy of https://github.com/mbillz | |
Okay so here is a brain dump: | |
Drum machine only: Model: Samples - you can really quickly spin up some cool and complex beats on this. It's basically a dumbed down version of the Digitakt with more knobs. You could pull off some decent bass lines on it, but I think it excels at just really quickly doing drums. It's pretty cheap too which is nice. | |
Drum machine + sampling weird sounds: Digitakt - this has a ton more control than the Model: Samples gives you, but with that comes more complexity. The biggest benefit is that it allows you to plug something in and sample it and then modify the sound using filters and envelopes and an LFO. There is a lot more to learn here, but I personally think it's worth it. You can definitely sample a bass note and get some pretty good bass lines going, but I wouldn't say it excels at this. | |
Synth + bass sounds: Digitone - If you want a groovebox / portal solution that doesn't have sampling but you can do crazy synth stuff with, this thi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~ kubectl api-resources | |
NAME SHORTNAMES APIGROUP NAMESPACED KIND | |
bindings true Binding | |
componentstatuses cs false ComponentStatus | |
configmaps cm true ConfigMap | |
endpoints ep true Endpoints | |
events ev true Event | |
limitranges limits true LimitRange | |
namespaces ns false Namespace | |
nodes no false Node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Courtesy of: https://github.com/vincentcr | |
shopt -s inherit_errexit 2>/dev/null | |
set -o pipefail -o nounset -o errexit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Courtesy: https://stackoverflow.com/a/20686101 | |
docker ps -a | grep -v CONTAINER | cut -d' ' -f1 | xargs docker inspect -f '{{.Config.Image}}{{"\t"}}{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' |