Skip to content

Instantly share code, notes, and snippets.

View Wolg's full-sized avatar
👀

Stanislav Chistenko Wolg

👀
  • Pipedrive
  • Tallinn
View GitHub Profile
@bomberstudios
bomberstudios / sketch-plugins.md
Last active January 2, 2026 16:22
A list of Sketch plugins hosted at GitHub, in no particular order.
@rabbiabram
rabbiabram / get_duplicates_by_field.sql
Created October 17, 2013 03:50
Get duplicates records from talbe by field
SELECT * FROM %table_name%
INNER JOIN (SELECT %field_name% FROM %table_name%
GROUP BY %field_name% HAVING count(%id%) > 1) duplication ON %table_name%.%field_name% = duplication.%field_name%

Zero downtime deploys with unicorn + nginx + runit + rvm + chef

Below are the actual files we use in one of our latest production applications at Agora Games to achieve zero downtime deploys with unicorn. You've probably already read the GitHub blog post on Unicorn and would like to try zero downtime deploys for your application. I hope these files and notes help. I am happy to update these files or these notes if there are comments/questions. YMMV (of course).

Other application notes:

  • Our application uses MongoDB, so we don't have database migrations to worry about as with MySQL or postgresql. That does not mean that we won't have to worry about issues with the database with indexes being built in MongoDB or what have you.
  • We use capistrano for deployment.

Salient points for each file:

@bf4
bf4 / ruby_learning.md
Last active July 17, 2021 08:06
Some Ruby Learning Resources
@pda
pda / unicorn.rake
Created September 12, 2011 07:39
Rake tasks for Unicorn: start stop restart increment decrement pstree
namespace :unicorn do
##
# Tasks
desc "Start unicorn"
task(:start) {
config = rails_root + "config/unicorn.rb"
sh "bundle exec unicorn --daemonize --config-file #{config}"
}