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
# Title setting function | |
function git_title { | |
# See if we're in a git path | |
if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) = true ]]; then | |
# Set the title to <git parent folder name>:<current branch> like "mycoollib:master" | |
echo -ne "\033]0;$(basename `git rev-parse --show-toplevel`):$(git rev-parse --abbrev-ref HEAD)\007" | |
else | |
# Set the title to the present working directory | |
echo -ne "\033]0;$PWD\007" | |
fi |
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 python | |
# coding: utf-8 | |
# | |
# Facebook Photos & Videos Export Date Fixer | |
# Author: Nathan V <[email protected]> | |
# | |
# Copyright 2019 Nathan V | |
# License: MIT; https://opensource.org/licenses/MIT | |
# | |
# Works on Python 3+ |
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 python | |
# coding: utf-8 | |
# | |
# Nowplaying (via Last.fm) to Slack | |
# Author: Nathan V <[email protected]> | |
# | |
# Copyright 2017 Nathan V | |
# License: MIT; https://opensource.org/licenses/MIT | |
# This simple little script could be expanded to support command line | |
# args, multiple sources, and multiple Slack domains... but for now it |
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 | |
# Dev env update script for *env tools | |
# Supports: RBEnv, RBEnv Ruby Build plugin, PyEnv, GoEnv | |
if [ -d "$HOME/.rbenv/" ]; then | |
echo "Updating RbEnv..." | |
cd $HOME/.rbenv/ | |
git pull | |
echo -e "...done.\n" |