- Strings
- Arrays
- Hashes
- Classes
- Conditionals (if)
- Conditional (case)
- Modules (for mixins)
- Namespaces
- requiring
- Gems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "next_timeline", | |
"version": "0.1.0", | |
"description": "Just the test infrastructure, ma'am", | |
"devDependencies": { | |
"buster": "~0.6.12", | |
"requirejs": "~2.1.2" | |
}, | |
"dependencies": {}, | |
"scripts": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for reading Heredoc into var | |
# (from http://stackoverflow.com/questions/1167746/how-to-assign-a-heredoc-value-to-a-variable-in-bash/8088167#8088167) | |
assign_heredoc(){ IFS='\n' read -r -d '' ${1} || true; } | |
assign_heredoc INSTALL_SCRIPT <<'SCRIPT' | |
HEROKU_CLIENT_URL="http://assets.heroku.com.s3.amazonaws.com/heroku-client/heroku-client.tgz" | |
# download and extract the client tarball | |
rm -rf /usr/local/heroku |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failure/Error: @validator = Nokogiri::XML::Schema(File.open(schema_dir.join("Payment.xsd"))) | |
Nokogiri::XML::SyntaxError: | |
Element '{http://www.w3.org/2001/XMLSchema}include': The schema document '/Users/matt/Documents/work/current/xeroid/vendor/XeroAPI-Schemas/v2.00/Payment.xsd' cannot be included or redefined, since it was already imported. | |
Payment.xsd: https://github.com/XeroAPI/XeroAPI-Schemas/blob/master/v2.00/Payment.xsd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(make_mozilla)Gad:make.mozilla.org matt$ python manage.py shell | |
Python 2.6.7 (r267:88850, Jul 31 2011, 19:30:54) | |
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
(InteractiveConsole) | |
>>> import commonware.log | |
>>> log = commonware.log.getLogger('mk.tasks') | |
>>> log.info('HELLZ YEAH') | |
>>> from make_mozilla.base.decorators import log_execution | |
>>> log_execution(log.error) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class dev { | |
class { | |
postgresql: before => Class[python]; | |
python: before => Class[geo_django_deps]; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo virt-install -r 512 --accelerate -n test-ubuntu -f /dev/guests/test \ | |
--location=http://archive.ubuntu.com/ubuntu/dists/oneiric/main/installer-i386/ \ | |
--nographics --os-variant=ubuntuoneiric \ | |
--extra-args="serial console=tty0 console=ttyS0,115200" | |
# /dev/guests/test is an LVM volume |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu ALL=(ALL) NOPASSWD:ALL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<schema name="Trigram" version="1.4"> | |
<!-- this is heavily truncated, but I hope it has the relevant stuff in --> | |
<types> | |
<fieldType name="title_trigram" class="solr.TextField" | |
positionIncrementGap="100" stored="false" multiValued="true"> | |
<analyzer type="index"> | |
<tokenizer class="solr.KeywordTokenizerFactory"/> | |
<filter class="solr.LowerCaseFilterFactory"/> | |
<filter class="solr.NGramFilterFactory" minGramSize="3" | |
maxGramSize="3"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Beor:web matt$ brew doctor | |
Your system is raring to brew. | |
Beor:web matt$ brew update | |
Initialized empty Git repository in /usr/local/.git/ | |
remote: Counting objects: 48129, done. | |
remote: Compressing objects: 100% (21364/21364), done. | |
remote: Total 48129 (delta 30245), reused 41934 (delta 26093) | |
Receiving objects: 100% (48129/48129), 6.87 MiB | 1.00 MiB/s, done. | |
Resolving deltas: 100% (30245/30245), done. | |
From https://github.com/mxcl/homebrew |