The following sums up all connections (ESTABLISHED, TIME_WAIT, FIN_WAIT, etc.) and sorts it: netstat -n | awk ' $5 ~ /^[0...

techblog.netflix.com

You login to a Linux server with a performance issue: what do you check in the first minute? uptime

makandra dev
cyberciti.biz

Wondering which processes are placed in your swap you can use this bash oneliner: for file in /proc/*/status ; do...

makandra dev
github.com

Remove some old binaries (commands still exist in geordi) and mark others as deprecated Rewrite deploy command to support...

E-mails are usually encoded using Quoted Printable. Here is how to decode or encode such strings. You probably know...

makandra dev
serverfault.com

Logging tcpdump output all the time can create a huge amount of data. This can be both: too much data...

I had a very frequent cronjob that in rare cases could be relatively slow. To avoid multiple instances of this...

makandra dev
stackoverflow.com

git rebase -i -> mark your commit with edit git reset HEAD~ (remove the marked commit, but keep its...

Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...

ma.ttias.be

Article shows how to make a script that fakes one kind of content when printed with cat, but uses different...

stackoverflow.com

With ngAnimate, you can easily animate certain events (see directive support). We'll make use of ngClass animations to style...

Spreewald comes with a selector_for helper that matches an English term like the user's profile into a CSS...

To check which rubygems versions your different rbenv rubys are using, you can use this small bash script:

makandra dev

tig is a command line explorer for Git that is just awesome. Install via apt-get or brew. Handy commands...

makandra dev

CTRL + SHIFT + ALT + N Search for any symbol in your application, like CSS classes, Ruby classes, methods, helpers etc...

makandra dev
github.com

The Bullet gem is designed to help you increase your application's performance by reducing the number of queries it...

If you see a stacktrace beginning with lines like this: E, [2015-07-16T09:23:10.896146 #23308] ERROR -- : app...

When you want to UPDATE a table with information from an associated table, you can JOIN the associated table into...

If you want to sort values from an enumerable into two arrays based on whether they match a certain criteria...

When you are using the #selector_for helper in Cucumber steps, as e.g. Spreewald does, the following snippet will save...

tldr; Use git diff -M or git diff --find-renames when you've moved a few files around. Usage

makandra dev
draggabilly.desandro.com

Javascript library for drag'n'drop that seems to have more options than native HTML5 drag'n'drop.

api.rubyonrails.org

To avoid n+1 queries, you want to eager-load associated records if you know you need to access them...

When using jQueryUI's Sortable plugin (either directly or via Angular's ui.sortable), you might struggle testing your nice drag...