Skip to content

Instantly share code, notes, and snippets.

@digitaljhelms
digitaljhelms / gist:6501232
Created Sep 9, 2013
Vagrant cannot forward the specified ports...
View gist:6501232

The issue:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Fixed port collision for 22 => 2222. Now on port 2200.
Vagrant cannot forward the specified ports on this VM, since they
would collide with some other application that is already listening
@digitaljhelms
digitaljhelms / disableinstantwatch.user.js
Last active Feb 22, 2019
Disable Netflix Instant Watch Links
View disableinstantwatch.user.js
// ==UserScript==
// @name Disable Netflix Instant Watch Links
// @namespace https://gist.github.com/6349351
// @description Click the cover image, go the video detail page, simple...
// @version 1.1
// @author Jeremy Helms <digitaljhelms@gmail.com>
// @include http://www.netflix.com/*
// @exclude http://www.netflix.com/WiPlayer/*
// ==/UserScript==
@digitaljhelms
digitaljhelms / gist:5247192
Last active Sep 17, 2020
A faster, less buggy alternative to "python -m SimpleHTTPServer"
View gist:5247192
$ npm install -g http-server
$ http-server -p 8000 -a foo.bar.com

Would serve PWD at http://foo.bar.com/

@digitaljhelms
digitaljhelms / .bashrc
Last active Mar 29, 2016
My personal ~/.bashrc file
View .bashrc
Moved: https://github.com/digitaljhelms/dotfiles
@digitaljhelms
digitaljhelms / gist:4287848
Last active Jan 19, 2021
Git/GitHub branching standards & conventions
View gist:4287848

Branching

Quick Legend

Instance Branch Description, Instructions, Notes
@digitaljhelms
digitaljhelms / gist:4208694
Last active Oct 13, 2015
What makes up a CSS rule
View gist:4208694
,....................... (CSS RULE) ......................,
| |
| ,...., |
| (SELECTOR) --> | h1 | |
| `''''` |
| { |
| ,....................., |
| | ,......., ,....., | |
| (DECLARATION) --> | | color | : | red | | ; |
| | `'''''''` `'''''` | |
@digitaljhelms
digitaljhelms / gist:4035539
Created Nov 8, 2012
Yahoo! Pipes & Twitter REST API rate limits and authentication requirements
View gist:4035539

Usage limits for Pipes

  • 200 runs (of a given Pipe) in 10 minutes
  • 200 runs (of any Pipe) from an IP in 10 minutes
  • If you exceed the 200 runs in a 10 minute block, your Pipe will be 999'ed for a hour (a 999 error implies you are over utilizing our service)

Usage limits for Twitter + Pipes

REST API

@digitaljhelms
digitaljhelms / .gitconfig
Last active Mar 13, 2020
My personal ~/.gitconfig file
View .gitconfig
[user]
name = Jeremy Helms
email = digitaljhelms@gmail.com
[alias]
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | sort # list all aliases
cb = !git branch | grep ^* | cut -d' ' -f2
branch-name = !git cb # alias to "cb" alias
st = status
ci = commit
cie = commit --allow-empty-message -m ''
@digitaljhelms
digitaljhelms / gist:3761873
Created Sep 21, 2012
Git/GitHub commit standards & conventions
View gist:3761873

Committing Code

General Rules

  • Make atomic commits of changes, even across multiple files, in logical units. That is, as much as possible, each commit should be focused on one specific purpose.
  • As much as possible, make sure a commit does not contain unnecessary whitespace changes. This can be checked as follows:
$ git diff --check
@digitaljhelms
digitaljhelms / gist:3125794
Created Jul 16, 2012
Bash CLI function to change the file extension for multiple files at once
View gist:3125794
# bash function, usage: $ ext [ext1] [ext2]
function ext() {
for f in *.$1; do mv $f `basename $f .$1`.$2; done;
}