I hereby claim:
- I am andreimaxim on github.
- I am andreimaxim (https://keybase.io/andreimaxim) on keybase.
- I have a public key ASDalNRYks3i50fbQfm0F2ubAeWlyzp--vUQfIALWm69GQo
To claim this, I am signing this object:
require File.expand_path("config/environment", __dir__) | |
require "zeitwerk" | |
namespace :zeitwerk do | |
desc "Check project structure for Zeitwerk compatibility" | |
task :check do | |
base_directory = Pathname.new "lib" | |
loader = Zeitwerk::Loader.new |
module CacheKeyMonkeyPatch | |
module ActiveRecord | |
module Integration | |
# Returns a cache key that can be used to identify this record. | |
# | |
# ==== Examples | |
# | |
# Product.new.cache_key # => "products/new" | |
# Product.find(5).cache_key # => "products/5" (updated_at / last_modified_time not available) |
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y build-essential curl | |
# NodeJS >= 6.0 | |
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - | |
RUN apt-get install -y nodejs | |
# ttfautohint |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
require_relative './clojure-1.8.0.jar' | |
def clojure; Java::ClojureLang; end | |
i = clojure.PersistentHashMap.create(a: 'b') | |
puts i[:a] #=> 'b' |
This configuration works with Upstart on Ubuntu 12.04 LTS
The reason why it needs to be done this way (i.e. with the pre-start
and post-stop
stanzas), is because Upstart
is unable to track whever Unicorn master process re-execs itself on hot deploys. One can use it without hot-deploys
and run Unicorn in foreground also, it then only needs one exec stanza.
This presumes you are not using RVM, so no voodoo dances.
This script installs a patched version of ruby 1.9.3-p125 with patches to make ruby-debug work again (#47) and boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.
Huge thanks to funny-falcon for the performance patches.
This installs a patched ruby 1.9.3-p484 with the railsexpress patchsets: https://github.com/skaes/rvm-patchsets
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf
using homebrew.
# This block requires the geo module, which enables the use of | |
# variables which depend on the IP address of the client. | |
# | |
# In this case, everyone outside of the 192.168.0.x network | |
# is considered an "external" client. | |
geo $external { | |
default 1; | |
192.168.0.0/24 0; | |
} |