find out which processes using swap

Posted Over 8 years ago by Claus-Theodor Riegg.
cyberciti.biz

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

start tcpdump log on high traffic

Posted Over 8 years ago by Claus-Theodor Riegg.
serverfault.com

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

Sending TCP keepalives in Ruby

Posted Over 8 years ago by Henning Koch.

When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when...

Matching unicode characters in a Ruby (1.9+) regexp

Posted Over 8 years ago by Tobias Kraze.

On Ruby 1.9+, standard ruby character classes like \w, \d will only match 7-Bit ASCII characters: "foo" =~ /\w+/ # matches...

whenever: Preview the crontab

Posted Over 8 years ago by Henning Koch.

If you'd like to preview the crontab that whenever will deploy, run the following: bundle exec whenever

Parallel Rspec with RTeX

Posted Almost 9 years ago by Emanuel.

Running projects parallel makes some trouble with PDF generation. Use geordi rspec spec to force sequential tests for the whole...

Make timestamp of dmesg in Ubuntu human readable

Posted About 9 years ago by Thomas Eisenbarth.

dmesg shows the kernel ring buffer containing low-level system messages. Per default, dmesg shows a timestamp:

Fontawesome 4+ icon naming conventions

Posted About 9 years ago by Dominik Schöler.
yoyo.io

Fontawesome 4 has introduced new naming conventions that make it easy to retrieve variants of a given icon.

AngularJS Cheat Sheet (PDF)

Posted About 9 years ago by Henning Koch.
dncmagazine.blob.core.windows.net

This cheat sheet...

...aims at providing a quick reference to the most commonly used features in AngularJS.

grosser/rspec-instafail

Posted About 9 years ago by Henning Koch.
github.com

Gem to show failing specs instantly. Unlike the --fail-fast option it doesn't abort abort on the first failure...

Installing Adobe Reader on Ubuntu

Posted Over 9 years ago by Arne Hartherz.
askubuntu.com

Adobe no longer supports their PDF reader on Linux and the official page does not offer it for download. \

Bootstrap: How to avoid printing link URLs

Posted Over 9 years ago by Thomas Klemm.

By default, Twitter Bootstrap's print styles include printing links. /* Bootstrap's way of printing URLs */ @media print {

Fixing tlmgr cannot setup TLPDB

Posted Over 9 years ago by Dominik Schöler.
tex.stackexchange.com

tlmgr is the TeX Live Manager and responsible for the TeX installation on your (Linux) machine. If you're getting...

How to repair a corrupt PDF

Posted Over 9 years ago by Dominik Schöler.
blog.idrsolutions.com

If you have issues with PDFs, fix them like this: pdftk .pdf output .pdf Background I had an issue where...

How to install the `xelatex` binary on Ubuntu 14.04

Posted Over 9 years ago by Dominik Schöler.

Just install the texlive-xetex package: sudo apt-get install texlive-xetex Running integration tests without texlive-xetex will produce...

When Sass-generated stylesheets print a Encoding::CompatibilityError

Posted Over 9 years ago by Henning Koch.

We upgraded a Rails 2 application to Rails 3.2 and Ruby 2.1, changed the mysql adapter from mysql to mysql2...

pdfkit/wkhtmltopdf: When a header is invisible

Posted Over 9 years ago by Henning Koch.

If you're using the :header_html option in PDFKit (or the corresponding --header-html option in wkhtmltopdf), and the...

Linux: Running a program with a different locale than your default

Posted Over 9 years ago by Arne Hartherz.

When your system is not running on English, you may sometimes want to run some applications and not use your...

What we know about PDFKit

Posted Over 9 years ago by Henning Koch.
github.com

PDFKit converts a web page to a PDF document. It uses a Webkit engine under the hood...

PSA: Umlauts are not always what they seem to be

Posted Almost 10 years ago by Arne Hartherz.

When you have a string containing umlauts which don't behave as expected (are not matched with a regexp, can...

Lightweight PDF viewer: MuPDF

Posted Almost 10 years ago by Arne Hartherz.
mupdf.com

MuPDF is a PDF reader that renders very quickly, yet still correctly. It supports PDF 1.7 and all the fancy...

A Ruby script that installs all gems it is missing

Posted Almost 10 years ago by Dominik Schöler.

So you want your Ruby script to install missing gems instead of dying? Take this method: def installing_missing_gems...

Rails 2: Refuse response formats application-wide

Posted Almost 10 years ago by Dominik Schöler.

If you regularly get ActionView::MissingTemplate exceptions, maybe some bot visits your site requesting silly formats like: http://www.rails-app.com/makandra.html-username-2000...

Linux: How to print PDF files from the command line

Posted About 10 years ago by Arne Hartherz.
linux.die.net

Sometimes you may want to print files from the command line, especially when you have lots of them.