Skip to content

Instantly share code, notes, and snippets.

Rob McGuire robatron

Block or report user

Report or block robatron

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View install-dotfiles
# Remote script to install these dotfiles on a system
system_type=$(uname -s)
echo "Verifying git installed..."
if ! [ -x "$(command -v git)" ]; then
View gist:20657c99c0d51ddd82f47f51e14e2b3e
seta r_mode "-1"
seta r_customwidth "1920"
seta r_customheight "1080"
r_swapInterval "1"
View hash-table-skel.js
* Represents a hash table implemented on top of an array where each bucket is
* also an array.
class HashTable {
// Create a new hash table instantiated with the table size, the size of
// the the array
constructor(tableSize) {}
View node.js
class Node {
constructor( value = null, adjacents = [] ) {
this.value = value;
this.adjacents = adjacents;
toString ( ) {
return JSON.stringify( this );
View quotes.txt
If you want to achieve greatness stop asking for permission. ~Anonymous
Things work out best for those who make the best of how things work out. ~John Wooden
To live a creative life, we must lose our fear of being wrong. ~Anonymous
If you are not willing to risk the usual you will have to settle for the ordinary. ~Jim Rohn
Trust because you are willing to accept the risk, not because it's safe or certain. ~Anonymous
Take up one idea. Make that one idea your life - think of it, dream of it, live on that idea. Let the brain, muscles, nerves, every part of your body, be full of that idea, and just leave every other idea alone. This is the way to success. ~Swami Vivekananda
All our dreams can come true if we have the courage to pursue them. ~Walt Disney
Good things come to people who wait, but better things come to those who go out and get them. ~Anonymous
If you do what you always did, you will get what you always got. ~Anonymous
Success is walking from failure to failure with no loss of enthusiasm. ~Winston Chu

Automatically Prepend a Jira Issue ID to Git Commit Messages

Use a git hook to match a Jira issue ID from the current branch, and prepend it to every commit message

Assuming the current branch contains a Jira issue ID, you can use a git hook script to prepend it to every commit message.

  1. Create an empty commit-msg git hook file, and make it executable. From your project's root directory:

     install -b -m 755 /dev/null .git/hooks/commit-msg
  2. Save the following script to the newly-created .git/hooks/commit-msg file:

robatron /
Last active Jan 10, 2016
Terminal dashboarding tricks

Terminal Dashboard Notes

A few notes for creating a terminal-based dashboard


function _dash_init () {
    tput civis
View query-string.js
Parse and stringify URL query strings
by Sindre Sorhus
MIT License
(function () {
'use strict';
var queryString = {};
robatron /
Last active Aug 29, 2015
Notes for Open Source Bridge 2015
You can’t perform that action at this time.