Leonid Svyatov
[≡]

$ tail -f ~/blog

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

2019-02-18 · 1 min read How to send Rails deprecation warnings to Airbrake Send Rails production deprecation warnings to Airbrake with an ActiveSupport::Notifications subscriber that preserves the message and call stack. # ruby · rails · todayilearned · tutorial 2014-10-04 · 1 min read A bookmarklet for Tweetbot for Mac Two ways to share the current browser page to Tweetbot for Mac in one click: a tiny bookmarklet built on the Tweetbot URL scheme, and a Chrome extension for those who prefer not to bother. # javascript · macos · productivity · webdev 2014-08-12 · 2 min read How to partition and format a drive with GNU Parted Four commands in the parted shell are all it takes to repartition and format a drive on Linux: pick the disk from parted -l, create a gpt or msdos label, make one ext4 partition, and quit. # linux · devops · tutorial · cli 2014-07-16 · 2 min read Upload and download files on a remote server with iTerm2 and Z-Modem How to send files to a remote server and pull them back from inside an SSH session, without opening a separate scp session, using the Z-Modem protocol, lrzsz and iTerm2 triggers. # macos · terminal · devops · tutorial 2013-09-27 · 1 min read Using unique option prefix pass instead of password is deprecated If MySQL or your cron logs suddenly started printing this warning, the culprit is most likely a shortened option name in your ~/.my.cnf. Here is the one-line fix. # mysql · devops · linux · cli 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

Hotkeys