Ivan Radovanovic's picture

Postgres configuraton

Useful query to get information about parameters:

select name, context, pending_restart, setting from pg_settings

Ivan Radovanovic's picture

Simple script to toggle touchpag on/off

Here is simple script to toggle touchpad on laptop on or off

First you have to discover which device id is actually touchpad - you can do that using xinput list. There touchpad will be shown as one more mouse. Then you can update script below with touchpad's ID on your system (replace <ID> with actual number). You can bind this little script to some key to be able to easily toggle touchpad on or off.

Ivan Radovanovic's picture

Disabling bitmap fonts in X

To disable bitmap fonts in X create symbolic link to ../conf.avail/70-no-bitmaps.conf in /usr/local/etc/fonts/conf.d
# cd /usr/local/etc/fonts/conf.d
# ln -s ../conf.avail/70-no-bitmaps.conf

Ivan Radovanovic's picture

Reseting dconf database

In case it gets corrupted some applications might be unable to start at all - to clean it simply delete directory ~/.config/dconf

Ivan Radovanovic's picture

FreeBSD 11, X and UEFI

If X doesn't start with message similar to "Cannot run in framebuffer mode. Please specify busIDs" and you are booting your system using UEFI you should install package drm-kmod, and make sure to load appropriate module before starting X (for example i915kms.ko), but beware that after installing package modules with same names will be present in both /boot/kernel and /boot/modules, so it is necessary to give full path to module to load (for example kldload /boot/modules/i915kms.ko).

Ivan Radovanovic's picture

Tools for calculating various code complexity metrics

Ivan Radovanovic's picture

Installing multiple instances of Phabricator on the same server

Just non-obvious steps listed (with things to replace in uppercase), follow their installation instructions for general setup


Subscribe to codenicer.com RSS