Skip to content

Instantly share code, notes, and snippets.

View amfarrell's full-sized avatar

Andrew Farrell amfarrell

  • Malden, Massachusetts
View GitHub Profile
/*!
* csurf
* Copyright(c) 2011 Sencha Inc.
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2014-2016 Douglas Christopher Wilson
* MIT Licensed
*/
'use strict'
@amfarrell
amfarrell / gist:2878d416412b7cd10dc2
Last active November 29, 2015 03:52
connection refused error installing vagrant-aws from vagrant
afarrell@carn-carby:~/projects/saltmarsh$ vagrant -v
Vagrant 1.7.4
afarrell@carn-carby:~/projects/saltmarsh$ gem -v
2.0.14
afarrell@carn-carby:~/projects/saltmarsh$ vagrant plugin install vagrant-aws
Installing the 'vagrant-aws' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
[distutils]
index-servers =
pypi
[pypi]
username:amfarrell
password:I dont post my passphrase publicly
[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"
@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?
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
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')
[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 ...
^
@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
<!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>