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 pip install kotoba | |
| Downloading/unpacking kotoba | |
| You are installing an externally hosted file. Future versions of pip will default to disallowing externally hosted files. | |
| You are installing a potentially insecure and unverifiable file. Future versions of pip will default to disallowing insecure files. | |
| Downloading kotoba-3.0.1.tar.gz | |
| Running setup.py egg_info for package kotoba | |
| Installing collected packages: kotoba | |
| Running setup.py install for kotoba | |
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
| { | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/Theme - itg.flat/itg.dark.tmTheme", | |
| "draw_white_space": "all", | |
| "highlight_line": true, | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], | |
| "rulers": |
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
| $.ajax({ | |
| url: '', | |
| success: function(r) {console.log(r);}, | |
| headers: { | |
| 'Authorization': '', | |
| 'Accept': 'application/json' | |
| } | |
| }); |
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
| // This code is just conceptual to illustrate the proposed future change. | |
| var amqp = require('amqp'), | |
| connection = amqp.createConnection({ host: 'dev.rabbitmq.com' }); | |
| connection.on('ready', function () { | |
| function onMyQueueMessageReceived(message) { | |
| console.log(message); | |
| } |
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
| $ ab -n 1000 -c 10 http://10.0.0.12:8000/login | |
| This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
| Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
| Licensed to The Apache Software Foundation, http://www.apache.org/ | |
| Benchmarking 10.0.0.12 (be patient) | |
| Completed 100 requests | |
| Completed 200 requests | |
| Completed 300 requests | |
| Completed 400 requests |
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
| bind_ip = 127.0.0.1 | |
| maxConns = 5 | |
| objcheck = false | |
| logappend = true | |
| fork = true | |
| dbpath = /data/mongo/db | |
| logpath = /data/mongo/daemon.log | |
| noscripting = true |
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
| from tori.db.document import document | |
| from tori.db.manager import Manager | |
| from tori.db.mapper import link, AssociationType | |
| @document | |
| class Computer(object): | |
| def __init__(self, name): | |
| self.name = name | |
| @link('computer', Computer, association_type=AssociationType.ONE_TO_ONE) |
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
| export RPI_IMAGE=/Volumes/Sonata/Terminal/2012-12-16-wheezy-raspbian.img | |
| # Procedure for MacBook Air 13" (Mac OS X 10.8.x) with External HDD | |
| # /dev/disk3s1 is the partition mounted for the SD card. | |
| # /dev/rdisk3 is the actual device block for the SD card. | |
| sudo diskutil unmount /dev/disk3s1 | |
| sudo dd bs=1m if=/Volumes/Sonata/Terminal/2012-12-16-wheezy-raspbian.img of=/dev/rdisk3 | |
| sudo diskutil eject /dev/rdisk3 |
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
| #!/usr/bin/sh | |
| echo "Downloading Python 3.3" &&\ | |
| rm -Rf python3.3 &&\ | |
| mkdir python3.3 &&\ | |
| cd python3.3 &&\ | |
| curl -O http://python.org/ftp/python/3.3.0/Python-3.3.0.tgz &&\ | |
| curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py &&\ | |
| curl -O http://pypi.python.org/packages/source/d/distribute/distribute-0.6.34.tar.gz &&\ | |
| echo "Extracting packages" &&\ |
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
| " Vim syntax file (custom) | |
| " Language: Django template | |
| " Maintainer: Dave Hodder <dmh@dmh.org.uk> | |
| " Last Change: 2010 May 19 | |
| " For version 5.x: Clear all syntax items | |
| " For version 6.x: Quit when a syntax file was already loaded | |
| if version < 600 | |
| syntax clear | |
| elseif exists("b:current_syntax") |