Skip to content

Instantly share code, notes, and snippets.

View joshmn's full-sized avatar
🔒
@ FCI Thompson

joshmn joshmn

🔒
@ FCI Thompson
View GitHub Profile
@joshmn
joshmn / fish.conf
Created May 5, 2016 18:16 — forked from Epigene/fish.conf
Fish2 configuration file
# Path to Oh My Fish install.
set -gx OMF_PATH /Users/augusts/.local/share/omf
source $OMF_PATH/init.fish
# Path to your oh-my-fish.
set PATH /Applications/Postgres.app/Contents/Versions/9.4/bin $PATH
set PATH ~/bin $PATH
set PATH /usr/local/bin $PATH
set -x RACK_ENV development
set -x EDITOR atom
@joshmn
joshmn / contact.rb
Created May 4, 2017 20:24 — forked from endymion/contact.rb
Example of integrating a Ruby on Rails app with Zapier using the REST hooks pattern. With support for triggering the REST hooks from Resque background jobs.
class Contact < ActiveRecord::Base
...
def after_create
if Hook.hooks_exist?('new_contact', self)
Resque.enqueue(Hook, self.class.name, self.id)
# To trigger directly without Resque: Hook.trigger('new_contact', self)
end
end