Skip to content

Instantly share code, notes, and snippets.

@finalfantasia
finalfantasia / fixing_text_anti_aliasing_in_fedora.md
Last active April 5, 2025 14:54
Fixing Text Anti-aliasing in Fedora
  1. Add the RPMFusion repositories (both free and non-free) to the YUM repository directory (/etc/yum.repos.d/):
sudo dnf localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
  1. Install the patched version of FreeType with subpixel rendering enabled:
sudo dnf install -y freetype-freeworld
@finalfantasia
finalfantasia / what_a_good_commit_message_looks_like.md
Last active August 8, 2024 06:53
What a good commit message looks like (Linus Torvalds)

A good commit message looks like this:

Header line: explain the commit in one line (use the imperative)

Body of commit message is a few lines of text, explaining things
in more detail, possibly giving some background about the issue
being fixed, etc.

The body of the commit message can be several paragraphs, and

please do proper word-wrap and keep columns shorter than about

@finalfantasia
finalfantasia / javascript_scoping_and_hoisting.js
Last active August 29, 2015 14:03
JavaScript Scoping and Hoisting
// related write-up
// http://www.adequatelygood.com/JavaScript-Scoping-and-Hoisting.html
// example code
var a = 1;
function b (arguments) {
var a = 3;
@finalfantasia
finalfantasia / fix_gtk_warnings_issues_with_adobe_reader_32_bit_on_64_bit_linux
Created August 21, 2013 06:32
Fixes to some Gtk+ warnings/issues with 32-bit Adobe Reader 9 on 64-bit versions of Linux. These warnings will be shown when the 32-bit Acrobat Reader 9 is launched from within terminals via the 32-bit binary (acroread) on 64-bit versions of Linux. The root cause is the lack of necessary 32-bit (i386) packages on 64-bit versions of Linux. These …
WARNING: Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap":
FIX: sudo aptitude install gtk2-engines-pixbuf:i386
WARNING: Gtk-Message: Failed to load module "canberra-gtk-module"
FIX: sudo aptitude install libcanberra-gtk-module:i386
WARNING: Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita"
FIX: sudo aptitude install gnome-themes-standard:i386