Skip to content

Instantly share code, notes, and snippets.

View squarelover's full-sized avatar

Sean Wolfe squarelover

View GitHub Profile
1) Install MongoDB and launch it:
21:44:59 ^ $ /opt/local/bin/mongod --dbpath=/opt/mongo-data/
Wed Aug 19 21:45:10 Mongo DB : starting : pid = 6578 port = 27017 dbpath = /opt/mongo-data/ master = 0 slave = 0 32-bit
** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data
** see http://blog.mongodb.org/post/137788967/32-bit-limitations for more
Wed Aug 19 21:45:10 db version v0.9.8, pdfile version 4.4
Wed Aug 19 21:45:10 git version: nogitversion
@squarelover
squarelover / gist:179415
Created September 1, 2009 21:44
Patch for Spidermonkey install via homebrew
--- src/jsprf.c 2009-07-26 12:32:01.000000000 -0700
+++ src/jsprf.c 2009-07-26 12:33:12.000000000 -0700
@@ -58,6 +58,8 @@
*/
#ifdef HAVE_VA_COPY
#define VARARGS_ASSIGN(foo, bar) VA_COPY(foo,bar)
+#elif defined(va_copy)
+#define VARARGS_ASSIGN(foo, bar) va_copy(foo,bar)
#elif defined(HAVE_VA_LIST_AS_ARRAY)
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
javascript:var%20s=document.createElement('script');s.setAttribute('src',%20'http://jquery.com/src/jquery-latest.js');document.getElementsByTagName('body')[0].appendChild(s);alert('thank%20you%20for%20using%20jquery!');void(s);
# bash resource script for loading up environment paths.
WANTED_PATHS=( \
"/Users/seanwolfe/bin" \
"/Users/seanwolfe/bin/jira" \
"${EC2_HOME}/bin" \
"/usr/local/mysql/bin" \
"/usr/local/bin:/usr/local/sbin"
"/Developer/SDKs/android-sdk-mac/tools"
"/usr/local/cuda/bin"
def reset_attribute!(name)
value = attribute_was(name)
@attributes[name] = value
modifications.delete(name)
end
@squarelover
squarelover / .ackrc
Created May 24, 2011 16:54
My ~/.ackrc
--ignore-dir=log
--ignore-dir=tmp
--ignore-dir=db/*
--ignore-dir=doc/*
--ignore-dir=coverage
--type-add=ruby=.haml,.rake,.rsel,.sass,.thor,.erb,Gemfile
--type-set=cucumber=.feature
@squarelover
squarelover / gitalias.sh
Created October 17, 2014 19:10
Git Aliases that cam make push and pull easier.
#
# Will return the current branch name
# Usage example: git pull origin $(current_branch)
#
function current_branch() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
ref=$(git rev-parse --short HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}
}
@squarelover
squarelover / keybase.md
Created April 17, 2018 09:46
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@squarelover
squarelover / dynamic_spread_and_band_script.py
Last active April 24, 2023 11:23
slightly modified dynamic spread script
from decimal import Decimal
from datetime import datetime
import time
from hummingbot.script.script_base import ScriptBase
from hummingbot.core.event.events import BuyOrderCompletedEvent, SellOrderCompletedEvent
from os.path import realpath, join
s_decimal_1 = Decimal("1")
LOGS_PATH = realpath(join(__file__, "../../logs/"))