Skip to content

Instantly share code, notes, and snippets.

View pivotalcommon's full-sized avatar

Pivotal Labs Common Effort Role Account pivotalcommon

View GitHub Profile
#main-table {
background-image: url(http://pivotallabs.com/images/pivotallabs-logo.png?1341861684) !important;
}
@pivotalcommon
pivotalcommon / gist:1925982
Created February 27, 2012 18:26
error upgrading jitsu
sudo npm install jitsu -g
npm http GET https://registry.npmjs.org/jitsu
npm http 304 https://registry.npmjs.org/jitsu
npm ERR! error installing jitsu@0.7.7-2
npm ERR! error rolling back jitsu@0.7.7-2 Error: UNKNOWN, unknown error '/usr/local/lib/node_modules/jitsu/node_modules/npm/node_modules/fstream/examples/path/to'
npm ERR! Error: UNKNOWN, unknown error '/usr/local/lib/node_modules/jitsu/node_modules/npm/node_modules/fstream/examples/path/to'
npm ERR! You may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
@pivotalcommon
pivotalcommon / bihourly.sh.patch
Created October 21, 2011 22:08
Arpwatch bihourly.sh modifications; no emails, different paths
diff --git a/bihourly.sh b/bihourly.sh
index fd273a4..d7da573 100755
--- a/bihourly.sh
+++ b/bihourly.sh
@@ -6,7 +6,7 @@
PATH=${PATH}:/usr/local/sbin
export PATH
#
-cd /usr/operator/arpwatch
+cd /usr/local/arpwatch
diamond:~ pivotal$ git clone https://github.com/pivotal/vim-config.git ~/.vim
Cloning into /Users/pivotal/.vim...
remote: Counting objects: 156, done.
remote: Compressing objects: 100% (116/116), done.
remote: Total 156 (delta 26), reused 138 (delta 19)
Receiving objects: 100% (156/156), 188.31 KiB, done.
Resolving deltas: 100% (26/26), done.
diamond:~ pivotal$ cd ~/.vim
diamond:.vim pivotal$ git submodule init
Submodule 'bundle/ack.vim' (https://github.com/mileszs/ack.vim.git) registered for path 'bundle/ack.vim'
@pivotalcommon
pivotalcommon / gist:841140
Created February 23, 2011 20:40
pulling legacy-js attributes from Body html
Thread.current[:current_site] = Site.find 8
include Rails.application.routes.url_helpers, LocationsHelper
def path_for_body(body)
page = body.pages.first
if page.is_a?(MiniPage)
mini_page_path_helper(page, page.location)
elsif page.is_a?(ContentPage)
content_page_path_helper(page)
else
page.id