Skip to content

Instantly share code, notes, and snippets.

View carlcrott's full-sized avatar

Carl Crott carlcrott

  • <( '.' <) <( '.' )> (> '.' )>
  • San Francisco CA
View GitHub Profile

Carl Crott
Oakland CA
carlcrott@gmail.com
415.304.3670

                        recruiters: please no unsolicited phone calls, email is preferred.

Bio:

Expect no privacy.
This is a place holder because Ebays auth is broken.
@carlcrott
carlcrott / gist:79cf989612515279bbbffc2339d2ea66
Last active September 21, 2017 21:51
Git workflow for centralized repo + multiple contributors
Code changes should only be pushed to github if all tests are passing.
Below is a common work-flow for a team working with a central repo.
Variations are possible, but if unsure, please go by this:
1. Git pull (or, if this is your first time ever getting the code, do git clone git@github.com:our_repo/our_repo.git to get a local copy of the repo)
2. Run tests
3. If tests fail, stop here and investigate. Do not continue to develop until all tests are passing.
4. git checkout -b my_work (create and switch to a local branch where you'll do your work)
(btcdev) Armament:joinmarket carlcrott$ pip install -r requirements-dev.txt
Collecting pexpect (from -r requirements-dev.txt (line 1))
Using cached pexpect-4.2.1-py2.py3-none-any.whl
Collecting pytest==2.8.2 (from -r requirements-dev.txt (line 2))
Using cached pytest-2.8.2-py2.py3-none-any.whl
Collecting pytest-cov==2.2.1 (from -r requirements-dev.txt (line 3))
Using cached pytest_cov-2.2.1-py2.py3-none-any.whl
Collecting python-coveralls (from -r requirements-dev.txt (line 4))
Using cached python_coveralls-2.9.1-py2.py3-none-any.whl
Collecting mock (from -r requirements-dev.txt (line 5))
#define TEMP_PIN_05 5
const int READING_COUNT = 5;
int val_05[READING_COUNT];
const int how_many = 5;
bool run_once = true;
int read_05 = 0;
//int val_06 = 0;
//int val_07 = 0;
ssh ubuntu@146.148.45.20
$ sudo su -l hadoop
$ hadoop fs -mkdir input/
$ wget http://www.hamster-club.com/
$ mv index.html /tmp/setup.html
$ hadoop fs -rm input/setup.html
$ hadoop fs -copyFromLocal /tmp/setup.html input/
echo "ufw ?"
if pip list | grep ufw ; then
echo "Already there!"
else
echo "installing!"
fi
echo "libcloud ?"
asdf = range(1,20)
for i in range(0, len(asdf)):
print "iter: {0}".format( i )
# break for end of list
if i == ( len(asdf) - 1 ) :
break
asdf[i], asdf[i+1] = asdf[i+1], asdf[i]
@carlcrott
carlcrott / pwnt.md
Last active March 17, 2020 18:07
Carl Crott -- Infrastructure

Carl Crott
Oakland CA
carlcrott@gmail.com
415.304.3670

                        recruiters: please no unsolicited phone calls, email is preferred.

Bio:

wget https://gist.githubusercontent.com/carlcrott/bb91b456927786b69b43/raw/e5774da32e48b7494348b989ea99dfafe48c0df7/init.sh
--2014-09-30 03:29:15-- https://gist.githubusercontent.com/carlcrott/bb91b456927786b69b43/raw/e5774da32e48b7494348b989ea99dfafe48c0df7/init.sh
Resolving gist.githubusercontent.com (gist.githubusercontent.com)... 192.30.252.157
Connecting to gist.githubusercontent.com (gist.githubusercontent.com)|192.30.252.157|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: `init.sh'
[ <=> ] 723 --.-K/s in 0s