Skip to content

Instantly share code, notes, and snippets.

@RobRuana
RobRuana / gohere
Last active July 24, 2023 10:51
Change $GOPATH to current directory to quickly switch between Go workspaces
#!/bin/bash -l
# Save this file in /usr/local/bin and chmod a+x for easy access
# Execute gohere to switch $GOPATH to current directory
# Type exit to switch back
# Example usage:
# $ echo $GOPATH
#
@RobRuana
RobRuana / .bashrc
Last active September 29, 2019 12:31
Customize bash for interactive shells
#--------------------------------------------------------
# Customize bash for interactive shells
#--------------------------------------------------------
# Source global definitions (if any)
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Environment variable exports (if any)
@RobRuana
RobRuana / .bash_profile
Created February 10, 2015 08:06
Basic .bash_profile that relies on .bashrc for customization
#--------------------------------------------------------
# ~/.bash_profile - executed by bash for login shells
#--------------------------------------------------------
# Include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
@RobRuana
RobRuana / .bash_aliases
Last active September 30, 2019 14:11
Useful bash aliases
#--------------------------------------------------------
# Personal bash aliases
#--------------------------------------------------------
# Prevent accidentally clobbering files
#alias rm='rm -i'
#alias cp='cp -i'
#alias mv='mv -i'
alias mkdir='mkdir -p'
@RobRuana
RobRuana / .bash_exports
Last active October 24, 2019 19:06
Environment variable exports
#--------------------------------------------------------
# Environment variable exports
#--------------------------------------------------------
export PAGER=less
export EDITOR=vim
export VISUAL=vim
@RobRuana
RobRuana / .inputrc
Last active January 19, 2020 17:46
Configure readline to make Mac OS X Terminal more usable
#--------------------------------------------------------
# Configure readline to make terminal more usable
#--------------------------------------------------------
# Wrap lines longer than the terminal
set horizontal-scroll-mode Off
# Enable 8bit input
set meta-flag On
set input-meta On
@RobRuana
RobRuana / .pythonstartup
Last active November 26, 2019 00:36
Make your Python interactive shell infinitely more usable
# .pythonstartup - executed by python interactive shell
import atexit
import os
import pprint
import readline
import rlcompleter
import sys
try:
@RobRuana
RobRuana / keybase.md
Created October 12, 2016 20:14
Keybase proof

Keybase proof

I hereby claim:

  • I am RobRuana on github.
  • I am robruana (https://keybase.io/robruana) on keybase.
  • I have a public key whose fingerprint is 75F4 8B02 9E5B 1470 A613 D0B1 424F 1272 D2F4 8CBD

To claim this, I am signing this object:

@RobRuana
RobRuana / autolink-jira-confluence.js
Last active May 12, 2018 16:26
Automatically link Jira Issues From Confluence
@RobRuana
RobRuana / AgileContractGuide.md
Last active October 1, 2023 17:41
Agile Contract Guide

Agile Contract Guide

This document is a guide to writing agile contracts. Unlike traditional contracts, an agile contract does not specify individual tasks to be completed by the Contractor. Rather, an agile contract specifies how the Client and Contractor interact, and how the Contractor is paid. The Deliverable Work performed for the contract is determined through an ongoing collaboration between the Client and the Contractor.

Agile contracts require a great deal of trust from both the Client and the Contractor. This trust is fostered through tight feedback cycles and well-defined responsibilities that both parties can expect from each other. More so than traditional contracts, an agile contract requires active participation from the Client.