This file contains hidden or 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 get pods | grep Terminated | awk '{print $1}' | xargs kubectl delete pod |
This file contains hidden or 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
#/bin/sh | |
# Iterate given directory echoes every file that's larger than 2MB | |
# See also https://explainshell.com/explain?cmd=find+.%2F+-maxdepth+2+-size+%2B2M | |
find $1 -maxdepth 2 -size +2M | while read file; | |
do | |
FILESIZE=$(stat -c%s "$file") | |
echo "$file is too large: ($FILESIZE)" | |
This file contains hidden or 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
git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline > new-in-this-release.log |
This file contains hidden or 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
git branch --merged | egrep -v "(^\*|master|rc|dev)" | xargs git branch -d |
This file contains hidden or 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
#!/bin/bash | |
IP=$( awk -F'"' '$0=$2' ~/.homestead/Homestead.yaml ); | |
APPNAME=$1 | |
if [[ -z "$IP" ]] | |
then | |
echo "could not determine IP... please start the vagrant box first!" | |
else | |
sudo -- sh -c -e "echo '$IP $APPNAME' >> /etc/hosts" |