Skip to content

Instantly share code, notes, and snippets.

View amfarrell's full-sized avatar

Andrew Farrell amfarrell

  • Malden, Massachusetts
View GitHub Profile
### Keybase proof
I hereby claim:
* I am amfarrell on github.
* I am amfarrell (https://keybase.io/amfarrell) on keybase.
* I have a public key whose fingerprint is C81D 3F09 6C98 39E8 40E4 5F20 4786 F86C BD1B A882
To claim this, I am signing this object:
@amfarrell
amfarrell / gist:f596224d78b27cb8e73e
Created February 11, 2015 21:24
output of `npm list` on a checkout of conda.io
conda.io@ /Users/afarrell/projects/conda-landing
├─┬ browserify@6.3.4
│ ├── assert@1.1.2
│ ├─┬ browser-pack@3.2.0
│ │ ├─┬ combine-source-map@0.3.0
│ │ │ ├── convert-source-map@0.3.5
│ │ │ ├── inline-source-map@0.3.0
│ │ │ └─┬ source-map@0.1.43
│ │ │ └── amdefine@0.1.0
│ │ └── through2@0.5.1
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>/* elided */real title here</title>
<link href="css/application.css" rel="stylesheet" type="text/css" charset="utf-8">
<!-- TODO: Remove these -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/jquery-ui/jquery-ui.js"></script>
@amfarrell
amfarrell / dj-test-auth_user-DNE
Created May 19, 2015 19:11
traceback I got trying to run django tests
Traceback (most recent call last):
File "/Users/afarrell/projects/aei/webapp/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "//anaconda/envs/heroku_aei/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
utility.execute()
File "//anaconda/envs/heroku_aei/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "//anaconda/envs/heroku_aei/lib/python2.7/site-packages/django/core/management/commands/test.py", line 30, in run_from_argv
super(Command, self).run_from_argv(argv)
File "//anaconda/envs/heroku_aei/lib/python2.7/site-packages/django/core/management/base.py", line 390, in run_from_argv
[ERROR ] Error parsing configuration file: /etc/salt/master - while scanning a simple key
in "<string>", line 730, column 1:
EXAMPLE MINION CONFIGURATION FILE
^
could not found expected ':'
in "<string>", line 731, column 1:
##### Primary configuration sett ...
^
ubuntu@ip-10-180-173-11:~$ sudo /opt/anaconda/bin/salt-call state.sls logstash --timeout=60 --out=yaml --state_output=mixed -l debug
[DEBUG ] Reading configuration from /opt/anaconda/etc/salt/minion
[DEBUG ] Including configuration from '/opt/anaconda/etc/salt/minion.d/_schedule.conf'
[DEBUG ] Reading configuration from /opt/anaconda/etc/salt/minion.d/_schedule.conf
[DEBUG ] Using cached minion ID from /opt/anaconda/etc/salt/minion_id: ip-10-180-173-11.ec2.internal
[DEBUG ] Configuration file path: /opt/anaconda/etc/salt/minion
[DEBUG ] Reading configuration from /opt/anaconda/etc/salt/minion
[DEBUG ] Including configuration from '/opt/anaconda/etc/salt/minion.d/_schedule.conf'
[DEBUG ] Reading configuration from /opt/anaconda/etc/salt/minion.d/_schedule.conf
[DEBUG ] Initializing new SAuth for ('/opt/anaconda/etc/salt/pki/minion', 'ip-10-180-173-11.ec2.internal', 'tcp://54.205.107.202:4506')
sudo strace -f /opt/anaconda/bin/salt-call state.sls logstash --timeout=60 --out=yaml --state_output=mixed -l debug --pillar-root='opt/anaconda/srv/pillar' 2> ~/t
cat /home/ubuntu/t | grep elasticsearch
stat("/opt/anaconda/var/cache/salt/minion/files/base/elasticsearch", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
stat("/opt/anaconda/var/cache/salt/minion/files/base/elasticsearch", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
lstat("/opt/anaconda/var/cache/salt/minion/files/base/elasticsearch", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/opt/anaconda/var/cache/salt/minion/files/base/elasticsearch", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
stat("/opt/anaconda/var/cache/salt/minion/files/base/elasticsearch/settings.sls", {st_mode=S_IFREG|0600, st_size=1059, ...}) = 0
stat("/opt/anaconda/var/cache/salt/minion/files/base/elasticsearch/init.sls", {st_mode=S_IFREG|0600, st_size=32, ...}) = 0
stat("/opt/anaconda/var/cache/salt/minion/files/base/elasticsearch/base.sls", {st_mode=S_IF
@amfarrell
amfarrell / gist:f81cc180f7171833f6d5
Created August 19, 2015 14:46
how-do-knots-form?
How do knots form?
My wife usually has a lot of knots, especially when anxious.
After watching Hank's anatomy video on the sliding filament model of muscles,
it seems like it could be caused by capllaries getting blocked and
muscle cells not having the oxygen to create ATP to pump calcium back
into the sarcoplasmic rediculum. This would mean that troponine never goes back
into place and that myosin stays bound to the
actin, causing the muscle to stay tight and
block the capillary that feeds it.
Is this true, resonable but unconfirmed, or am I off-base here?
[distutils] # this tells distutils what package indexes you can push to
index-servers =
pypi
pypitest
[pypi]
repository: https://pypi.python.org/pypi
username: "amfarrell"
password: "I dont post my passphrase publicly"
[distutils]
index-servers =
pypi
[pypi]
username:amfarrell
password:I dont post my passphrase publicly