Skip to content

Instantly share code, notes, and snippets.

@bohoomil
bohoomil / ft_headers
Created August 1, 2015 11:20
freetype2-iu 2.6-2 new headers location
/usr/include/freetype2
ft2build.h -> points to freetype/config/ftheader.h
/usr/include/freetype2/freetype/config
ftconfig.h
ftheader.h
ftmodule.h
ftoption.h
ftstdlib.h
/usr/include/freetype2/freetype
freetype.h
@bohoomil
bohoomil / gist:fd8b0e4b7f01653b6260
Last active August 29, 2015 14:16
java options => $HOME/.profile
export _JAVA_OPTIONS='-Dswing.aatext=true'
@bohoomil
bohoomil / font-width-fix.patch
Created March 25, 2014 17:11
urxvt font-width-fix.patch
--- src/rxvtfont.C.bukind 2007-11-30 14:36:33.000000000 +0600
+++ src/rxvtfont.C 2007-11-30 14:39:29.000000000 +0600
@@ -1171,12 +1171,21 @@
XGlyphInfo g;
XftTextExtents16 (disp, f, &ch, 1, &g);
+/*
+ * bukind: don't use g.width as a width of a character!
+ * instead use g.xOff, see e.g.: http://keithp.com/~keithp/render/Xft.tutorial
+
! grassland by bohoomil
URxvt*background: #0d1926
URxvt*foreground: #d9e6f2
*cursorColor: #238c0e
! black
*color0: #00070d
! dark gray
*color8: #666666
@bohoomil
bohoomil / euphrasia2
Last active April 7, 2022 11:46
euphrasia X color scheme -- updated
!! euphrasia v2 by bohoomil
! euphrasia fg/bg
URxvt*background: #090C19
URxvt*foreground: #E6E6E6
URxvt*cursorColor: #1AAA13
! X.org apps bg/fg
*background: #D0CECB
*foreground: #090C19
@bohoomil
bohoomil / colors
Created December 1, 2012 13:07
show Xresources colours
#!/bin/sh
colors=($(xrdb -query | sed -n 's/.*color\([0-9]\)/\1/p' | sort -nu | cut -f2))
echo -e "\e[1;37m
Black Red Green Yellow Blue Magenta Cyan White
───────────────────────────────────────────────────────────────────────────────────────\e[0m"
for i in {0..7}; do echo -en "\e[$((30+$i))m █ ${colors[i]} \e[0m"; done
echo
for i in {8..15}; do echo -en "\e[1;$((22+$i))m █ ${colors[i]} \e[0m"; done
@bohoomil
bohoomil / acroread.diff
Created December 6, 2011 19:11
Acrobat Reader launcher fix
--- acroread.old 2011-12-16 13:20:01.933286548 +0100
+++ acroread 2011-12-16 13:21:55.579337535 +0100
@@ -526,7 +526,7 @@ fi
if [ -z "$mozillaPath" ]; then
MozPath="`gconftool-2 -g /desktop/gnome/url-handlers/http/command 2>/dev/null | cut -d ' ' -f1 2>/dev/null`"
[ -x "${MozPath}" ] || MozPath="`Which "$MozPath"`"
- mozillaPath="`readlink "$MozPath" | xargs dirname`"
+ [ -n "${MozPath}" ] || mozillaPath="`readlink "$MozPath" | xargs dirname`"
if [ -n "$mozillaPath" ] && $TestCmd $TestCmdOption "$mozillaPath/libgtkembedmoz.so" || $TestCmd $TestCmdOption "$mozillaPath/libxul.so" ; then
MOZILLA_COMP_PATH="$mozillaPath"