Leonid Svyatov
[≡]

$ tail -f ~/blog

What I learn building software, fixing bugs, and testing the tools I rely on.

2013-09-16 · 1 min read Nobody knows how to upload a file with Ruby Net::HTTP Every answer online tells you to reach for a wrapper gem or shell out to curl. Ruby's standard Net::HTTP can send a multipart/form-data file upload on its own, and here is how. # ruby · webdev · tutorial · opensource 2013-09-02 · 1 min read Munin: LWP::UserAgent and Cache::Cache Munin shows no MySQL or Nginx data on a fresh Debian install because two Perl libraries are missing. Here are the packages to install and the Nginx status config the plugin expects. # devops · monitoring · perl · linux 2013-08-23 · 2 min read Mac OS X: paste without the source formatting How to make Cmd+V paste plain text in every Mac OS X app, with no third-party tools and no terminal, by remapping the shortcut to Paste and Match Style in System Preferences. # macos · productivity · tutorial · tips 2013-03-28 · 3 min read BetterErrors and RubyMine on Mac OS X How to make the BetterErrors gem open the offending file and line in RubyMine straight from the browser with a single click, using the x-mine URL scheme. # ruby · rails · debugging · macos 2013-02-28 · 4 min read Optimizing WordPress (and more) with Grunt How I used Grunt to concatenate, minify and gzip the styles and scripts of a WordPress theme, with a Gruntfile.coffee you can borrow and a fingerprint trick for cache busting. # wordpress · javascript · performance · webdev 2013-02-14 · 2 min read Tracking site errors with Ratchet.io Why Ratchet.io (soon to be Rollbar) beats Airbrake for small projects: official support for Rails, Python, PHP, Node.js and JavaScript, deploy tracking, GitHub integration and a free plan that is actually usable. # webdev · monitoring · debugging · devops

Hotkeys