Skip to content

Instantly share code, notes, and snippets.

@tristanoneil
tristanoneil / ops.csv
Last active November 15, 2023 18:06
ops
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
opportunity_id
0061U00000Ky9QOQAZ
0061U00000Ky9QQQAZ
0061U00000Ky9hDQAR
0061U00000Ky8jyQAB
0061U00000Ky8hLQAR
0061U00000KyA1hQAF
0061U00000Ky8iXQAR
0061U00000Ky8vnQAB
0061U00000Ky8vrQAB
@tristanoneil
tristanoneil / harvest
Created October 24, 2013 13:37
How to override Harvest for Mac time settings.
For AppStore apps:
defaults write com.getharvest.harvestxapp TimeFormat hours_minutes
defaults write com.getharvest.harvestxapp TimeFormat decimal
defaults write com.getharvest.harvestxapp TimeFormat server
For apps downloaded directly from GetHarvest:
defaults write ~/Library/Preferences/com.getharvest.harvestx.plist TimeFormat hours_minutes
defaults write ~/Library/Preferences/com.getharvest.harvestx.plist TimeFormat decimal
if [ -d ~/cache/phantomjs-2.1.1-linux-x86_64 ]
then
echo "PhantomJS 2.1.1 already found in cache, skipping download"
else
wget -O ~/cache/phantomjs-2.1.1.tar.bz2 https://s3.amazonaws.com/maji-development/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar xvfj ~/cache/phantomjs-2.1.1.tar.bz2 -C ~/cache/
fi
cp ~/cache/phantomjs-2.1.1-linux-x86_64/bin/phantomjs ~/.phantomjs/bin/phantomjs
@tristanoneil
tristanoneil / setup.sh
Last active February 17, 2016 19:42 — forked from hubertlepicki/setup.sh
PhantomJS 2.1.0
PHANTOMJS_URL="https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2"
set -e
rm -rf ~/.phantomjs
wget --continue "${PHANTOMJS_URL}" -O "${HOME}/cache/phantomjs"
tar xvfj "${HOME}/cache/phantomjs"
ln -s "${HOME}/cache/phantomjs" "${HOME}/bin/"
chmod +x "${HOME}/bin/phantomjs"
FROM ubuntu:precise
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update
RUN apt-get -y install git build-essential python-software-properties automake curl
# Install RVM
RUN curl -L https://get.rvm.io | bash -s stable
@tristanoneil
tristanoneil / gist:4254668
Created December 11, 2012 00:32
.gitconfig
[user]
email = tristanoneil@gmail.com
name = Tristan O'Neil
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
$ ->
$("div.contacts form").live "ajax:success", ->
$.get window.pathname, (data) =>
$(this).closest("div.contacts").replaceWith $(data).find("div.contacts")
@tristanoneil
tristanoneil / gist:4233841
Created December 7, 2012 15:09
Sublime Key Bindings
[
{ "keys": ["command+shift+."], "command": "erb" },
{ "keys": ["super+shift+l"], "command": "expand_selection", "args": {"to": "line"} },
{ "keys": ["super+shift+v"], "command": "paste" },
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["super+alt+f"], "command": "show_panel", "args": {"panel": "find"} },
{ "keys": ["super+f"], "command": "show_panel", "args": {"panel": "replace"} }
]
@tristanoneil
tristanoneil / gist:4233840
Created December 7, 2012 15:08
Sublime Settings
{
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"create_window_at_startup": false,
"draw_white_space": "all",
"hot_exit": false,
"ignored_packages":
[
"Vintage"
],
"remember_open_files": false,
@tristanoneil
tristanoneil / gist:4229885
Created December 7, 2012 01:03
Happy Hoppy Brown Ale
Original Gravity: 1.055
Final Gravity: 1.014
Primary: ~67 Degrees F 12 days
Secondary: 2 Weeks w/ 1 ounce of Whole Leaf Cascade
IBU: 40
Yeast: Wyeast 1332
9.0 lbs Pale Malt
1.0 lbs Crystal 60L