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
| consumer_key = '' | |
| consumer_secret = '' | |
| access_token = '' | |
| access_token_secret = '' |
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/env ruby | |
| require 'pp' | |
| require 'date' | |
| content = STDIN.read() | |
| REGEX = %r{ | |
| (?: |
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
| require 'rss' | |
| require 'pp' | |
| require 'rss/dublincore' | |
| $totals = Hash.new(0) | |
| $authors = Hash.new(0) | |
| FORUM_ID = 221 # replace this with your frm_id | |
| def calculate(feed) |
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
| --- | |
| applications: | |
| - name: nodetestdh01 | |
| framework: node | |
| runtime: node08 | |
| memory: 64M | |
| instances: 1 | |
| url: nodetestdh01.${target-base} | |
| path: . | |
| env: |
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
| <snippet> | |
| <content><![CDATA[ | |
| <pre class="terminal"> | |
| $1 | |
| </pre> | |
| ]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabTrigger>term</tabTrigger> | |
| <!-- Optional: Set a scope to limit where the snippet will trigger --> | |
| <!-- <scope>source.markdown</scope> --> |
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
| source :rubygems | |
| gem 'cfoundry' | |
| gem 'uuidtools' |
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
| /* | |
| * Basic mash up of Andrew de Quincey's Joggler light sensor code | |
| * and sample MQTT client code to publish light sensor reading | |
| * messages. | |
| * For more info. see: | |
| * http://code.google.com/p/adqmisc/source/browse/trunk/joggler/readlightsensor.c | |
| * http://www.eclipse.org/paho/files/mqttdoc/Cclient/ | |
| * http://jtlog.wordpress.com/2013/02/07/mqtt-joggler/ | |
| */ | |
| #include "stdio.h" |
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
| # cpu.pl | |
| # Andy Stanford-Clark | |
| # Feb-13 | |
| # seconds between readings from vmstat | |
| $sample_interval = 30; | |
| # drive a blink(1) to represent the CPU usage | |
| # blue is low, red is high |
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
| #!/bin/sh | |
| links http://en.wikipedia.org/wiki/HTTP_code#$1 |
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
| # MAC manipulators | |
| alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`' | |
| alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE' |