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
#!/bin/bash | |
kubectl run -it --rm --overrides='{"spec": {"hostNetwork": true}}' --image nicolaka/netshoot:latest netshoot -- bash |
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
THISFILE="$(pwd)/$0" | |
REPODIR=$(dirname $(dirname $(dirname "$THISFILE"))) | |
# Notify the user that we are updating HEAD. | |
echo -e "\033[32m" | |
echo "Updating HEAD for you." | |
echo git --git-dir "$REPODIR/.git" --work-tree "$REPODIR/" reset --hard master | |
echo -e "\033[0m" | |
git --git-dir "$REPODIR/.git" --work-tree "$REPODIR/" reset --hard master |
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
class Peekable(): | |
"""An iterable class which can return the next element of the wrapped | |
iterator without advancing it.""" | |
def __init__(self, iterator): | |
self.iterator = iterator | |
self.peeked = False | |
def peek(self): | |
if not self.peeked: | |
self.peeked = True |
I hereby claim:
- I am alexander-bauer on github.
- I am alexanderbauer (https://keybase.io/alexanderbauer) on keybase.
- I have a public key whose fingerprint is C1B8 130E 68FA 7080 C99C 2504 8191 E21A 76AA D89B
To claim this, I am signing this object:
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
*.ps | |
*~ | |
*#* |
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
#!/bin/sh | |
# | |
## convert.sh | |
# | |
# This script is used to convert all of the WAV audio files of a given | |
# artist/album pair to a different encoding. | |
# | |
# usage: | |
# convert.sh [artist] [album] |
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
#!/bin/bash | |
# | |
## blog | |
# | |
# This script creates a temporary file with [trofaf][] header data and | |
# opens it with an editor. When this is saved and closed, the file is | |
# moved to a particular directory with a title given either as the | |
# first argument, or read on the command line after completion. | |
# | |
# Once the file has been successfully renamed to markdown, if REGENDIR |
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
#!/bin/bash | |
## downloadkey.sh | |
## | |
## © 2013 Alexander Bauer, released under GPL-3+ | |
## The full text of GPL-3 can be found in /usr/share/common-licenses | |
## | |
# | |
# This script uses simple utilities to download a GPG public key over | |
# http and import it to the keyring. | |
# |
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
#!/bin/sh | |
## work is written by Alexander Bauer and released under GPL 3+, the | |
## full text of which can be found in /usr/share/common-licenses. | |
# | |
# The purpose of this script is to attach to a tmux session of a | |
# particular name if it exists, or create it if it does not. | |
# | |
# SESSION is the name of the tmux session. | |
SESSION="$USER-work" |
NewerOlder