Skip to content

Instantly share code, notes, and snippets.

@krasnoukhov
krasnoukhov / Gemfile
Last active Aug 29, 2015
NPR playlist downloader
View Gemfile
source "https://rubygems.org"
gem "ox"
gem "mp3info"
@krasnoukhov
krasnoukhov / Gemfile
Created Apr 10, 2014
sidekiq-middleware and jruby
View Gemfile
source "https://rubygems.org"
gem "sidekiq", "~> 2.17.0"
gem "sidekiq-middleware"
@krasnoukhov
krasnoukhov / nginx.log
Created Jul 23, 2014
Just posted link on Twitter
View nginx.log
46.236.26.102 - - [23/Jul/2014:07:34:16 -0700] "join.hired.com" "GET /x/3WavgA HTTP/1.1" 200 9286 "-" "-" "-" 0.116 0.116 "-"
54.246.137.243 - - [23/Jul/2014:07:34:16 -0700] "join.hired.com" "HEAD /x/3WavgA HTTP/1.1" 200 0 "-" "python-requests/1.2.3 CPython/2.7.2+ Linux/3.0.0-16-virtual" "-" 0.147 0.147 "-"
216.46.190.188 - - [23/Jul/2014:07:34:17 -0700] "join.hired.com" "HEAD /x/3WavgA HTTP/1.1" 200 0 "-" "Google-HTTP-Java-Client/1.17.0-rc (gzip)" "-" 0.127 0.127 "-"
74.112.131.243 - - [23/Jul/2014:07:35:17 -0700] "join.hired.com" "GET /x/3WavgA HTTP/1.1" 200 9284 "-" "Mozilla/5.0 ()" "-" 0.117 0.117 "-"
74.112.131.243 - - [23/Jul/2014:07:36:21 -0700] "join.hired.com" "GET /x/3WavgA HTTP/1.1" 200 9283 "-" "Mozilla/5.0 ()" "-" 0.196 0.196 "-"
185.20.4.220 - - [23/Jul/2014:07:34:16 -0700] "join.hired.com" "GET /x/3WavgA HTTP/1.1" 200 27017 "-" "Mozilla/5.0 (compatible; TweetmemeBot/3.0; +http://tweetmeme.com/)" "-" 0.086 0.086 "-"
199.59.148.209 - - [23/Jul/2014:07:34:16 -0700] "join.hired.com" "GET /x/3WavgA
View intra
$ time telnet memcached.theoldreader.intra 11211 | echo quit
quit
real 0m5.026s
user 0m0.015s
sys 0m0.007s
View talks.md

Baruco 2014 talks

mruby: AltRuby

by YUKIHIRO MATSUMOTO (Twitter)

Standard Library, Uncommon Uses

by PIOTR SZOTKOWSKI (Twitter)

Slides

@krasnoukhov
krasnoukhov / coffee.md
Created Oct 2, 2014
Brewing filtered coffee (essay)
View coffee.md

Brewing filtered coffee

It's no secret there are a lot of ways of brewing a cup of delicious coffee. Basically, coffee can be prepared through the boiling, steeping, filtration or by using the pressure. I find filter-based brewing the most convenient in terms of operational simplicity and resulting flavour, so let's see how exactly it can be prepared.

The common idea between different filter brewing methods is that water is poured into the pot through the grained beans, and filter helps to restrain beans from getting into it. However, there are things that may vary, such as water temperature, beans grind level and the design of coffee pot itself.

@krasnoukhov
krasnoukhov / Gemfile
Created Nov 5, 2014
SAXMachine nokogiri proof
View Gemfile
source "https://rubygems.org"
gem "sax-machine", github: "pauldix/sax-machine"
gem "nokogiri"
@krasnoukhov
krasnoukhov / omg.rb
Last active Aug 29, 2015
INSTANCE EVALER!
View omg.rb
omg = Class.new do
attr_accessor :test1
attr_accessor :test2
def inspect
puts "test1", test1.inspect
puts "test2", test2.inspect
puts "="*40
end
end
@krasnoukhov
krasnoukhov / output
Created Apr 17, 2015
ember-cli output
View output
krasnoukhov in ~/Downloads/my-app 💃 PATH=$PATH:./node_modules/ember-cli/bin/ ember server
Future versions of Ember CLI will not support v0.10.36. Please update to Node 0.12 or io.js.
version: 0.2.3
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/#watchman for more info.
Livereload server on port 35729
Serving on http://localhost:4200/
Build successful - 5327ms.
@krasnoukhov
krasnoukhov / Gemfile
Created Mar 15, 2012
Convert image to excel
View Gemfile
source 'http://rubygems.org'
gem 'nokogiri'
gem 'rubyzip'
gem 'rubyXL'
gem 'rmagick'