Skip to content

Instantly share code, notes, and snippets.

View jhaals's full-sized avatar
🌴
On vacation

Johan Haals jhaals

🌴
On vacation
View GitHub Profile
@jhaals
jhaals / upload.sh
Last active February 21, 2016 19:22
#!/bin/bash
# A free dropbox to your existing webserver
# Dependencies:
# $ brew install watchman terminal-notifier
# Configure watchman:
# $ watchman watch ~/uploads
# $ watchman -- trigger ~/uploads uploads -- /path/to/upload.sh
### Keybase proof
I hereby claim:
* I am jhaals on github.
* I am jhaals (https://keybase.io/jhaals) on keybase.
* I have a public key ASB4-35ra5GWl5KZgRkurf5YuahkFgA1t83qKQHjRlvgYAo
To claim this, I am signing this object:
require 'spec_helper'
describe port(53) do
it { should be_listening }
end
require 'pathname'
require 'serverspec'
require 'net/ssh'
def fixture_path
Pathname.new(File.expand_path(File.join(__FILE__, '..', 'fixtures')))
end
include SpecInfra::Helper::Ssh
include SpecInfra::Helper::DetectOS
require 'data_mapper'
require 'dm-migrations'
require 'cinch'
DataMapper::Logger.new($stdout, :debug)
DataMapper.setup(:default, 'postgres://localhost/irc')
class Channel
include DataMapper::Resource
property :id, Serial
{
"bold_folder_labels": true,
"color_scheme": "Packages/Solarized Color Scheme/Solarized (dark).tmTheme",
"font_size": 13.0,
"ignored_packages":
[
"Vintage"
],
"tab_size": 4,
"theme": "Soda Light.sublime-theme",