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 | |
column -t -s$'\t' < <( | |
readarray -t BRANCHES < <(git branch --list --format "%(refname:short)") | |
for BRANCH in "${BRANCHES[@]}"; do | |
SUMMARY=$(git log --oneline -1 "${BRANCH}" --pretty="format:%s") | |
echo -e "${BRANCH}\t${SUMMARY}" | |
done | |
) |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "git2/errors.h" | |
#include "git2/global.h" | |
#include "git2/remote.h" | |
#include "git2/repository.h" | |
#include "git2/strarray.h" |
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
# ~/.config/fish/functions/fish_user_key_bindings.fish | |
function __fzf_git_tags | |
if [ ! git rev-parse HEAD >/dev/null 2>&1 ] | |
return | |
end | |
git tag --sort -version:refname | \ | |
fzf-tmux --multi --preview-window right:70% \ | |
--preview 'git show --color=always {} | head -'$LINES |
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 | |
# | |
# awsrun - Run a command with AWS credentials. | |
# | |
# Credentials are read from lastpass using `lastpass-cli`. The key id for your | |
# account (which can be found via `lpass ls` is expected to be in the file | |
# `.lastpass-key-id`. | |
# | |
# Released as CC0 1.0. | |
# Full license available: https://creativecommons.org/publicdomain/zero/1.0/ |
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 | |
# | |
# aws-shell - Launch a shell with access to AWS credentials. | |
# | |
# Credentials are read from lastpass using `lastpass-cli`. The key id for your | |
# account (which can be found via `lpass ls` is expected to be in the file | |
# `.lastpass-key-id`. | |
# | |
# Released as CC0 1.0. | |
# Full license available: https://creativecommons.org/publicdomain/zero/1.0/ |
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 | |
set -euo pipefail | |
if (( $# != 1 )); then | |
echo "usage: ${0} PYSVN_ARCHIVE" | |
exit 1 | |
fi | |
OUTPUT_DIR="$(pwd)" | |
PYSVN_ARCHIVE="${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
#!/bin/bash | |
# git-setup-mirror | |
# | |
# Set up a repository to sync to and from a mirror. | |
# | |
# This is useful for working on a project from several machines. | |
set -euo pipefail | |
if [[ $# -ne 1 ]]; then |
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
### Keybase proof | |
I hereby claim: | |
* I am brennie on github. | |
* I am brennie (https://keybase.io/brennie) on keybase. | |
* I have a public key whose fingerprint is FD75 3599 8064 39F3 5D5F 2E1E 44ED 5735 647A B5F2 | |
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
template<class T> class Range | |
{ | |
public: | |
Range(T initial, T final, T step = T(1)) : _initial(initial), _final(final), _step(step) {} | |
class Iterator; | |
Iterator begin() const | |
{ | |
return Iterator(_initial, _step); |
NewerOlder