Skip to content

Instantly share code, notes, and snippets.

View ccurtisj's full-sized avatar

Christopher Curtis ccurtisj

View GitHub Profile
@ccurtisj
ccurtisj / sidekiq.config
Last active January 27, 2024 14:07 — forked from ssaunier/sidekiq.config
Running Sidekiq on AWS Elastic Beanstalk (Put that file in `.ebextensions` folder)
# Sidekiq interaction and startup script
commands:
create_post_dir:
command: "mkdir -p /opt/elasticbeanstalk/hooks/appdeploy/post"
ignoreErrors: true
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_sidekiq.sh":
mode: "000755"
owner: root
group: root
@ccurtisj
ccurtisj / jquery.waituntilexists.js
Created September 8, 2016 15:04 — forked from PizzaBrandon/jquery.waituntilexists.js
Updated waitUntilExists plugin
;(function ($, window) {
var intervals = {};
var removeListener = function(selector) {
if (intervals[selector]) {
window.clearInterval(intervals[selector]);
intervals[selector] = null;
}
# blog post:
require 'formtastic/version'
# Formtastic sets default input types for ActiveRecord column types. This does
# the same for Mongoid field types.
module Mongoid::Document
FORMTASTIC_2_2 = Formtastic::VERSION[/\A2\.2\.\d\z/]
# Map Mongoid field types to either ActiveRecord column types (which