most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
# http://unicorn.bogomips.org/SIGNALS.html | |
rails_env = ENV['RAILS_ENV'] || 'production' | |
rails_root = ENV['RAILS_ROOT'] || "/data/github/current" | |
God.watch do |w| | |
w.name = "unicorn" | |
w.interval = 30.seconds # default | |
# unicorn needs to be run from the rails root |
# This will ride alongside god and kill any rogue memory-greedy | |
# processes. Their sacrifice is for the greater good. | |
unicorn_worker_memory_limit = 300_000 | |
Thread.new do | |
loop do | |
begin | |
# unicorn workers | |
# |
from __future__ import division | |
from numpy.fft import rfft | |
from numpy import argmax, mean, diff, log, nonzero | |
from scipy.signal import blackmanharris, correlate | |
from time import time | |
import sys | |
try: | |
import soundfile as sf | |
except ImportError: | |
from scikits.audiolab import flacread |
require "resque" | |
require "resque/failure/multiple" | |
require "resque/failure/redis" | |
# Configure Resque connection from config/redis.yml. This file should look | |
# something like: | |
# development: localhost:6379 | |
# test: localhost:6379:15 | |
# production: localhost:6379 | |
Resque.redis = YAML.load_file(Rails.root + 'config/redis.yml')[Rails.env] |
#ui-datepicker-div | |
{ | |
.ui-datepicker-header | |
{ | |
background-image: none; | |
background-color: #0088cc; color: #fff; | |
.ui-datepicker-prev span.ui-icon | |
{ | |
background-image: url("/assets/glyphicons-halflings-white.png"); |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
.ui-autocomplete { | |
position: absolute; | |
top: 100%; | |
left: 0; | |
z-index: 1000; | |
float: left; | |
display: none; | |
min-width: 160px; | |
_width: 160px; | |
padding: 4px 0; |
namespace :monit do | |
desc "Monit unicorn configuration" | |
task :unicorn_service_tests, roles: :web do | |
run "mkdir -p #{shared_path}/config" | |
template "monit_unicorn.rb.erb", "/tmp/monit_unicorn" | |
run "#{sudo} mv /tmp/monit_unicorn /etc/monit/conf.d/unicorn_#{application}_#{rails_env}.conf" | |
unicorn_worker_pids.each do |val| | |
worker_template "monit_unicorn_worker.rb.erb", "/tmp/monit_unicorn_#{application}_#{rails_env}_#{val}_worker", val |