Skip to content

Instantly share code, notes, and snippets.

Valeri Sokolov ulfurinn

Block or report user

Report or block ulfurinn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ulfurinn on github.
  • I am ulfurinn ( on keybase.
  • I have a public key ASAnUU569hnVj7NyM68L19fWt4pJlJzpPnUoOqyHnisfzwo

To claim this, I am signing this object:

View gist:45d94d8bcc99e0a10025
// A quick and dirty demo of talking HTTP over Unix domain sockets
package main
import (
ulfurinn / 0_reuse_code.js
Created Jul 1, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
ulfurinn / my-project-generator.rb
Created Jun 19, 2013
deploying with hooks and amqp
View my-project-generator.rb
#!/usr/bin/env ruby
require "dante"
require "amqp"
require "oj"
$0 = "My project generator"
Dir.chdir "/var/www/my-project" "my-project", pid_path: '/var/www/', user: 'www-data', group: 'www-data' do
View amqp_rpc.rb
require "amqp"
require "fiber"
module AMQP_RPC
module Client
def subscribe
response_queue.subscribe do |header, body|
id = header.correlation_id
ulfurinn /
Created Aug 24, 2012
thin init.d script supporting individual servers
# Provides: thin
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: thin initscript
# Description: thin
You can’t perform that action at this time.