Skip to content

Instantly share code, notes, and snippets.

View singingwolfboy's full-sized avatar
Available for contract work

David Baumgold singingwolfboy

Available for contract work
View GitHub Profile
@singingwolfboy
singingwolfboy / gist:5729518
Created June 7, 2013 14:09
old-style classes in edX
% ack --py "class \w+:"
cms/djangoapps/contentstore/tests/test_core_caching.py
7:class Content:
cms/djangoapps/contentstore/utils.py
197:class CoursePageNames:
common/djangoapps/course_groups/models.py
15: class Meta:
% pip install -r requirements/edx/github.txt
Obtaining django-staticfiles from git+git://github.com/edx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles (from -r requirements/edx/github.txt (line 4))
Updating ./src/django-staticfiles clone (to 6d2504e5c8)
Complete output from command /usr/local/bin/git rev-parse (detachedfrom6d2504e):
fatal: ambiguous argument '(detachedfrom6d2504e)': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
@singingwolfboy
singingwolfboy / gist:5774083
Created June 13, 2013 14:25
ApplySyntax user settings
// Put your custom syntax rules here:
"syntaxes": [
{
"name": "HTML",
"rules": [
{"file_name": ".*\\.underscore"}
]
},
{
"name": "Mako/Syntaxes/HTML (Mako)",
{
// If you want exceptions reraised so you can see them in the console, change this to true.
"reraise_exceptions": false,
// If you want to have a syntax applied when new files are created, set new_file_syntax to the name of the syntax to use.
// The format is exactly the same as "name" in the rules below. For example, if you want to have a new file use
// JavaScript syntax, set new_file_syntax to 'JavaScript'.
"new_file_syntax": false,
// Put your custom syntax rules here:
@singingwolfboy
singingwolfboy / config
Last active December 20, 2015 16:08
.ssh/config file example
Host github1
User git
Hostname github.com
IdentityFile ~/.ssh/id_rsa_1
Host github2
User git
Hostname github.com
IdentityFile ~/.ssh/id_rsa_2
TASK: [Create ruby base] ******************************************************
ok: [192.168.33.10] => {"changed": false, "gid": 1005, "group": "www", "item": "", "mode": "0755", "owner": "www", "path": "/opt/www", "size": 4096, "state": "directory", "uid": 1002}
TASK: [rbenv | install build depends] *****************************************
ok: [192.168.33.10] => (item=build-essential,git,libcurl4-openssl-dev,libmysqlclient-dev,libreadline-dev,libssl-dev,libxml2-dev,libxslt1-dev,zlib1g-dev) => {"changed": false, "item": "build-essential,git,libcurl4-openssl-dev,libmysqlclient-dev,libreadline-dev,libssl-dev,libxml2-dev,libxslt1-dev,zlib1g-dev"}
TASK: [rbenv | update rbenv repo] *********************************************
ok: [192.168.33.10] => {"after": "9375e99", "before": "9375e99", "changed": false, "item": ""}
TASK: [rbenv | add rbenv to path] *********************************************
TASK: [Create ruby base] ******************************************************
changed: [192.168.33.10] => {"changed": true, "gid": 1005, "group": "www", "item": "", "mode": "0755", "owner": "www", "path": "/opt/www", "size": 4096, "state": "directory", "uid": 1002}
TASK: [rbenv | install build depends] *****************************************
ok: [192.168.33.10] => (item=build-essential,git,libcurl4-openssl-dev,libmysqlclient-dev,libreadline-dev,libssl-dev,libxml2-dev,libxslt1-dev,zlib1g-dev) => {"changed": false, "item": "build-essential,git,libcurl4-openssl-dev,libmysqlclient-dev,libreadline-dev,libssl-dev,libxml2-dev,libxslt1-dev,zlib1g-dev"}
TASK: [rbenv | update rbenv repo] *********************************************
changed: [192.168.33.10] => {"after": "9375e99", "before": null, "changed": true, "item": ""}
TASK: [rbenv | add rbenv to path] *********************************************
@singingwolfboy
singingwolfboy / gist:6553724
Created September 13, 2013 17:36
vagrant up traceback
This file has been truncated, but you can view the full file.
db ~/clones/configuration/vagrant/shortstack (git)-[master]
% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
@singingwolfboy
singingwolfboy / a.js
Created September 17, 2013 02:22
require.js seems to be executing scripts out of order
define([], function() {
console.log("loading a");
return "module a";
})
@singingwolfboy
singingwolfboy / gist:6674362
Created September 23, 2013 17:51
vagrant errors make me sad
This file has been truncated, but you can view the full file.
% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...