Do not use this guide. The dnscrypt protocol and dnscrypt-proxy configuration file have changed a lot since I wrote this gist. Check the following links for help:
- Install DNSMasq
$ brew install dnsmasq
# carbon-cache-a upstart job | |
# | |
# Daniel Beckham | |
# @dbeckham | |
# https://github.com/dbeckham | |
# | |
# Tested with Graphite carbon tag v0.9.12 from: | |
# https://github.com/graphite-project/carbon | |
# | |
# Upstart config: /etc/init/carbon-cache-a.conf |
/* Solarized Dark | |
For use with Jekyll and Pygments | |
http://ethanschoonover.com/solarized | |
SOLARIZED HEX ROLE | |
--------- -------- ------------------------------------------ | |
base03 #002b36 background | |
base01 #586e75 comments / secondary content |
# Chinese (China) translations for Devise(3.5.2) | |
# by Kenrick-Zhou (https://github.com/Kenrick-Zhou) | |
# https://gist.github.com/Kenrick-Zhou/7909822 | |
zh-CN: | |
devise: | |
confirmations: | |
confirmed: "您的帐号已经确认,您现在已登录。" | |
send_instructions: "几分钟后,您将收到确认帐号的电子邮件。" | |
send_paranoid_instructions: "如果您的邮箱存在于我们的数据库中,您将收到一封确认账号的邮件。" |
[ "{*.yml,*.yml.default}" ] | |
fileType = source.yaml | |
[ "{Capfile,Gemfile,Gemfile.lock,Guardfile}" ] | |
fileType = source.ruby | |
[ *_spec.rb ] | |
fileType = source.ruby.rspec | |
[ "{app/{models,controllers,mailers,helpers,cells,uploaders}/**/*.rb,*_controller.rb,*_helper.rb,*_mailer.rb}" ] |
Originally published in June 2008
When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.
To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.
Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.
PYTHONPATH=/opt/graphite/webapp/graphite | |
MODULE=graphite_uwsgi |
module Settings | |
def self.get key | |
val = data.fetch(Rails.env, nil).try(:[], ENV["PLATFORM"]).try(:[], key) | |
raise "value nil in #{ Rails.en }" if val.nil? && Rails.env != "test" | |
val | |
end | |
def self.data | |
@data ||= YAML.load_file File.join(Rails.root, "config/settings.yml") | |
end |
http://wiki.nginx.org/HttpLuaModule#Installation
install LuaJIT
$ brew install luajit
download ngx_devel_kit