I hereby claim:
- I am johnae on github.
- I am johnae (https://keybase.io/johnae) on keybase.
- I have a public key ASD9teBX66WaVWQ8_QS9nrz-QuJO5Tjd5RpcV8rBGB1WEAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
This is an example Ubuntu notifier that can be used with spook (a guard replacement - eg. watch for changes and run something). Clone this gist to:
~/.spook/notifiers/ubuntu
like so:
cd ~
This is an example OS X notifier that can be used with spook (a guard replacement - eg. watch for changes and run something). Clone this gist to:
~/.spook
like so:
cd ~
| #!/usr/bin/env bash | |
| ### This will download the latest release and put it in PREFIX, the default is /usr/local | |
| ### You can run the remote script locally like this: | |
| ### curl https://gist.github.com/johnae/6fdc84ea7d843812152e/raw/install.sh | PREFIX=~/Local bash | |
| defined () { | |
| [[ ${!1-X} == ${!1-Y} ]] | |
| } |
This is the tmux notifier I use for spook (a guard replacement - eg. watch for changes and run something). Clone this gist to:
~/.spook/notifiers/tmux
like so:
cd ~
| ([email protected])4> {ok, TLObj} = C:get(<<"luwak_tld">>, <<"<file_name_deleted>">>, 2). | |
| {ok,{r_object,<<"luwak_tld">>, | |
| <<"<file_name_deleted>">>, | |
| [{r_content,{dict,2,16,16,8,80,48, | |
| {[],[],[],[],[],[],[],[],[],[],[],[],...}, | |
| {{[],[],[],[],[],[],[],[],[],[],...}}}, | |
| [{attributes,{dict,2,16,16,8,80,48, | |
| {[],[],[],[],[],[],[],[],...}, | |
| {{[],[],[],[],[],[],...}}}}, | |
| {block_size,1000000}, |
| require 'nanite' | |
| require 'eventmachine' | |
| include Nanite::CommonConfig | |
| options = {} | |
| # config should be put in config/nanite.yml | |
| config_file = File.expand_path(File.join(Rails.root, 'config', 'nanite.yml')) | |
| custom_config = File.exists?(config_file) ? (YAML.load(IO.read(config_file)) || {}) : {} |