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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| require 'chef' | |
| Chef::Config.from_file(File.join(File.dirname(__FILE__), '.chef', 'knife.rb')) | |
| vms = { | |
| "testbox" => { | |
| :box => "precise64", | |
| :ipaddress => "192.168.33.10", |
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
| var serialport = require('node-serialport') | |
| var sp = new serialport.SerialPort("/dev/ttyO3", { | |
| parser: serialport.parsers.raw, | |
| baud: 9600 | |
| }) | |
| sp.on('data', function(chunk) { | |
| console.log(chunk.toString('hex'), chunk.toString(), chunk) | |
| }) |
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
| # 1. Put this file to /etc/pf.conf | |
| # 2. Install init boot scripts using IceFloor then - http://www.hanynet.com/icefloor/ | |
| # I tried to use IceFloor to configure everything but it didn't work very well. | |
| # 3. Once done, you can confirm the rules were loaded with 'sudo pfctl -sr' | |
| # 4. At System Preferences -> Security -> Firewall -> Firewall Options, | |
| # check 'Block all incoming connections' to prevent annoying per-app dialogs. | |
| set skip on lo0 | |
| set block-policy drop |
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 Attachment < ActiveRecord::Base | |
| belongs_to :attachable, :polymorphic => true | |
| mount_uploader :item, AttachmentUploader | |
| # background the storage of files to AWS and processing | |
| # makes for fast uploads! | |
| store_in_background :item | |
| attr_accessible :item | |
| before_save :update_attachment_attributes |
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
| import ddf.minim.*; | |
| import ddf.minim.signals.*; | |
| import ddf.minim.analysis.*; | |
| import ddf.minim.effects.*; | |
| Minim minim; | |
| AudioPlayer player; | |
| AudioInput input; | |
| FFT fft; |
I want to get off Gmail for two reasons:
- my own
*@mislav.netaddress - to get my email under my own control so I can write scripts to process/analyze it
I've asked on Twitter what software should I use.
Here are the aggregated suggestions.
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
| input { | |
| stdin { type => "stdin-type"} | |
| generator { type => "generator-type" message => "generated event" } | |
| } | |
| output { | |
| librato { | |
| type => "generator-type" | |
| account_id => "foo@foo.com" | |
| api_token => "1231231231231231231231" | |
| gauge => ["value", "%{sequence}","source","%{@source_host}", "name", "bar_bytes"] |
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
| ## Prepare ################################################################### | |
| # Remove RVM | |
| rvm implode | |
| # Ensure your homebrew is working properly and up to date | |
| brew doctor | |
| brew update | |
| ## Install ################################################################### |