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
#!/usr/bin/env bash | |
# Requires bash 4+ (not shipped with macos) | |
set -e | |
set -o pipefail | |
most_recent_branches() { | |
git reflog show --pretty=format:'%gs ~ %gd' --date=relative \ | |
| grep 'checkout:' | grep -oE '[^ ]+ ~ .*' \ |
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 -e | |
set -o pipefail | |
# This should be run within a folder for the repsitory within the obsidian vault. It will create | |
# symlinks to every file linked in the root markdown file provided within this directory. | |
# | |
# Links must be relative! | |
obsidian_deeplink_readme() { | |
# The root file. Typically README.md |
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
Copyright © 2016 Baptiste Mispelon, Peter Novotnak | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the “Software”), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
of the Software, and to permit persons to whom the Software is furnished to do | |
so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all |
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
### Keybase proof | |
I hereby claim: | |
* I am pnovotnak on github. | |
* I am pnovotnak (https://keybase.io/pnovotnak) on keybase. | |
* I have a public key whose fingerprint is 2792 8A11 7497 9397 47D8 C3DF FEC4 1E21 37EF D57E | |
To claim this, I am signing this object: |
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 | |
# virtualenv-auto-activate.sh | |
# | |
# Installation: | |
# Add this line to your .bashrc or .bash-profile: | |
# | |
# source /path/to/virtualenv-auto-activate.sh | |
# | |
# Go to your project folder, run "virtualenv env", so your project folder | |
# has a env folder at the top level, next to your version control directory. |