Skip to content

Instantly share code, notes, and snippets.

View guywithnose's full-sized avatar

Robert Bittle guywithnose

View GitHub Profile

Keybase proof

I hereby claim:

  • I am guywithnose on github.
  • I am guywithnose (https://keybase.io/guywithnose) on keybase.
  • I have a public key ASBNoyz1yvOo0CXZHcs9BV_jlVfQlaVbmwluVmqVzAyqHQo

To claim this, I am signing this object:

@guywithnose
guywithnose / dockerPsIp.sh
Created September 4, 2015 13:56
Append IP Address to docker ps output
#!/bin/bash
PS="$(docker ps)"
echo "${PS}" | head -1 | sed 's/$/\t\t\t\t\tIP/'
LINES="$(echo "$PS" | sed '1d')"
IFS=$(echo -e '\n')
for LINE in $LINES
do
ID=$(echo "${LINE}" | awk '{print $1}')
IP=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' "${ID}")
echo -e "${LINE}\t${IP}"
#!/bin/bash -e
####
# Helper script to update the Last modified timestamp of files in a Git SCM
# Projects working Copy
#
# When you clone a Git repository, it sets the timestamp of all the files to the
# time when you cloned the repository.
#
# This becomes a problem when you want the cloned repository, which is part of a
# Web application have a proper cacheing mechanism so that it can re-cache files
#!/bin/bash -e
####
# Helper script to update the Last modified timestamp of files in a Git SCM
# Projects working Copy
#
# When you clone a Git repository, it sets the timestamp of all the files to the
# time when you cloned the repository.
#
# This becomes a problem when you want the cloned repository, which is part of a
# Web application have a proper cacheing mechanism so that it can re-cache files
@guywithnose
guywithnose / current branch alias.sh
Last active December 12, 2015 12:38
Returns the current branch
alias cb='git rev-parse --abbrev-ref HEAD'
@guywithnose
guywithnose / Nebulous_OAuth.user.js
Last active March 10, 2023 19:54
TamperMonkey script to automatically authenticate with Nebulous. Currently it only works in Chrome with JSONView installed.
// ==UserScript==
// @name Nebulous OAuth
// @namespace autoForm
// @include https://apis.traderonline.com/*
// @include https://api-dev.traderonline.com/*
// @include http://apis.traderonline.com/*
// @include http://api-dev.traderonline.com/*
// @include http://nebulous.local/*
// @include http://nebulous.testing/*
// @grant none
@guywithnose
guywithnose / gfl.sh
Last active October 13, 2015 21:57
Get file list script
if [ $# == 0 ]
then
git diff `git merge-base HEAD {defaultRemote}/master` --name-only
else
if [ $# == 1 ]
then
git diff `git merge-base HEAD $1/master` --name-only
else
git diff `git merge-base HEAD $1/$2` --name-only
fi