This file contains 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
$ imap-backup folders | |
***email*** | |
/home/matt/.rvm/gems/ruby-1.9.3-p484/gems/imap-backup-1.0.3/bin/imap-backup:68:in `block in <top (required)>': undefined method `each' for nil:NilClass (NoMethodError) | |
from /home/matt/.rvm/gems/ruby-1.9.3-p484/gems/imap-backup-1.0.3/lib/imap/backup/configuration/list.rb:25:in `block in each_connection' | |
from /home/matt/.rvm/gems/ruby-1.9.3-p484/gems/imap-backup-1.0.3/lib/imap/backup/configuration/list.rb:23:in `each' | |
from /home/matt/.rvm/gems/ruby-1.9.3-p484/gems/imap-backup-1.0.3/lib/imap/backup/configuration/list.rb:23:in `each_connection' | |
from /home/matt/.rvm/gems/ruby-1.9.3-p484/gems/imap-backup-1.0.3/bin/imap-backup:66:in `<top (required)>' | |
from /home/matt/.rvm/gems/ruby-1.9.3-p484/bin/imap-backup:23:in `load' | |
from /home/matt/.rvm/gems/ruby-1.9.3-p484/bin/imap-backup:23:in `<main>' | |
from /home/matt/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `eval' |
This file contains 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 request = require('request'); | |
var async = require('async'); | |
var time = process.hrtime(); | |
var totalConnections = 0; | |
var simultaneousConnections = 500; | |
// Make the array async.each will loop over |
This file contains 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 | |
projectsFolder="/Users/matt/Dropbox/Apps/subl-projects" | |
cwd=`pwd` | |
for project in *; do | |
file="$projectsFolder/$project.sublime-project" | |
[ -d $project ] && [ ! -f $file ] && ( | |
echo "Creating project file for $project" |
This file contains 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 es = require('event-stream'); | |
es.pipeline( | |
fs.createReadStream(ummon.config.log.path, {flags: 'r', encoding: 'utf-8'}), | |
es.split(), | |
es.parse(), | |
es.mapSync(function (data) { | |
if (key) { | |
if (data[key] && data[key] === val) { | |
return data; |
This file contains 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
Show hidden characters
{ | |
"curly": true, | |
"eqeqeq": true, | |
"immed": true, | |
"latedef": true, | |
"newcap": true, | |
"noarg": true, | |
"sub": true, | |
"undef": true, | |
"boss": true, |
This file contains 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
<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'> | |
<title>Mail Filters</title> | |
<id>tag:mail.google.com,2008:filters:1359735724802</id> | |
<updated>2013-03-11T13:27:31Z</updated> | |
<author> | |
<name>Matt McManus</name> | |
<email>mattmcmanus@gmail.com</email> | |
</author> | |
<entry> | |
<category term='filter'></category> |
This file contains 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
# ignore the "bit" stuff.. only relevant to my custom jekyll fork | |
desc 'create new post or bit. args: type (post, bit), title, future (# of days)' | |
# rake new type=(bit|post) future=0 title="New post title goes here" slug="slug-override-title" | |
task :new do | |
require 'rubygems' | |
require 'chronic' | |
type = ENV["type"] || "bit" | |
title = ENV["title"] || "New Title" |
This file contains 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/bash | |
# in versions | |
dir=`pwd` | |
versions=`ls` | |
for version in $versions | |
do | |
if [ -d "$dir/$version" ]; then | |
cd $dir/$version |
This file contains 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 fs = require('fs'), | |
stylus = require('stylus'), | |
nib = require('nib'), | |
gzip = require('connect-gzip'), | |
express = require('express'), | |
MongoStore = require('connect-mongo')(express), | |
settings = require('./settings'); | |
module.exports = function(app, at, express) { | |
app.set('environment', settings.NODE_ENV); |
This file contains 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
#!upstart | |
description "Accountable" | |
author "mattmcmanus" | |
start on (local-filesystems and net-device-up IFACE=eth0) | |
stop on shutdown | |
respawn | |
respawn limit 5 60 # give up restart after 5 respawns in 60 seconds |