How to install npm packages globally without sudo on Linux

Posted Almost 5 years ago by Dominik Schöler.
stackoverflow.com

Set up a package root in your homedir to hold the Node "global" packages: $ NPM_PACKAGES="$HOME/.npm-packages"

CSS: How to find out the rendered font in chrome

Posted Over 5 years ago by Emanuel.

The rendered font often depends on the local font your system provides, therefore you often find a rule like below...

How to fix: Corrupt special characters in ZIPs on Linux

Posted Almost 6 years ago by Arne Hartherz.

When you receive a ZIP file from a Windows user, umlauts and other non-latin1 characters in filenames may look...

How to resize your boot partition when there is an encrypted partition after it

Posted About 6 years ago by Arne Hartherz.

Boot partitions from installations prior to the 16.04 era are terribly small. When you install updates and encounter errors due...

Making httpclient use the operating system's SSL cert store

Posted About 6 years ago by Henning Koch.

The httpclient gem comes with a custom SSL cert store. While an customizable, application-level cert store is great when...

PostgreSQL: Upgrading your user to a superuser

Posted About 6 years ago by Dominik Schöler.
stackoverflow.com

Your default postgres user is named like your linux user. That default user has limited access privileges, which can cause...

Chrome: Making high-resolution website screenshots without add-ons

Posted Over 6 years ago by Henning Koch.

If you want to make a screenshot of a website that works well in print or on a high-DPI...

How to move all files in a folder to a new subfolder

Posted Over 6 years ago by Emanuel.

Let's say you have a folder images and want to to move all files in there to a new...

How to view Image Metadata on the Linux Command Line with ImageMagick

Posted About 7 years ago.

ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...

Linux: Running a single unique instance of command + arguments

Posted About 7 years ago by Dominik Schöler.
manpages.ubuntu.com

run-one is a wrapper script that won't run the given command while another instance of it is running...

Thinkpad: Disable Bluetooth on start-up

Posted About 7 years ago by Henning Koch.

Add the following to /etc/rc.local: (sleep 3 && echo disable > /proc/acpi/ibm/bluetooth)& Bluetooth icon will be active for a few seconds, then...

Linux: Quickly create large files for testing

Posted About 7 years ago by Henning Koch.

To create a 10 GB file: fallocate -l 10G huge_file.dat

Linux: Using grep with a regular expression

Posted Over 7 years ago by Andreas Robecke.

You can use three different versions of the regular expression syntax in grep: basic: -G extended: -E(POSIX)

Howto: Free disk space when /boot is full

Posted Over 7 years ago by Emanuel.

This method will remove automatically installed packages that no other packages depend on any more. This, of course...

Fix external Displays switching not on when plugging notebook in docking station

Posted Over 7 years ago by Claus-Theodor Riegg.

If your external displays not switching on or showing a weird behavior (for e.g. all displays getting the same configuration...

Giving a presentation with a dual screen layout on linux

Posted Over 7 years ago by Tobias Kraze.

When giving a presentation with a projector it is sometimes better to use a dual screen layout instead of a...

How to disable material design in Google Chrome

Posted Over 7 years ago by Arne Hartherz.

A few releases back, Chrome started using a Material Design UI on desktop. If you don't like it (on...

How to type brackets, braces, pipe, backslash, or at sign on OSX

Posted Over 7 years ago by Arne Hartherz.

On OSX (real or inside Browserstack), you need different keystrokes for your favorite special characters than you'd use on...

How to find out what is running on a port on a remote machine

Posted Almost 8 years ago by Arne Hartherz.

By convention, common protocols use a defined port, like 80 for HTTP or 443 for HTTPS. You can use nmap...

Google Chrome: How to find out your currently installed theme

Posted Almost 8 years ago by Arne Hartherz.

So you downloaded a theme for Chrome a while ago and don't remember which one it is?

Icon font vertical alignment in Windows

Posted Almost 8 years ago by Dominik Schöler.

I had an issue with icons from an icon font aligning differently on Linux, iOS and Windows (seemingly browser-independent...

Linux: Find out which processes are swapped out

Posted Almost 8 years ago by Thomas Eisenbarth.

Processes in Linux might be put into Swap ("virtual memory") occasionally. Even parts of a single process might be removed...

How to fix: RubyMine / IntelliJ "find file" dialog losing focus on awesome wm

Posted Almost 8 years ago by Arne Hartherz.

Many of our developers love to use the "awesome" window manager on Linux. However, RubyMine dialogs occasionally defocus while typing...

Linux: How To Fix Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release : chrome

Posted About 8 years ago by Henning Koch.
reddit.com

Chrome has discontinued support for 32-Bit Linux builds and this might break your apt-get update.