Skip to content

Instantly share code, notes, and snippets.

@w0ng
w0ng / hybrid.py
Created August 19, 2012 17:54
hybrid pygments colours
# -*- coding: utf-8 -*-
"""
pygments.styles.hybrid
~~~~~~~~~~~~~~~~~~~~~~~
Mimic the hybrid color scheme from Vim.
https://github.com/w0ng/vim-hybrid
"""
@w0ng
w0ng / codehilite-hybrid.css
Created August 19, 2012 18:08
css for python-markdown's codehilite extension (incomplete)
.codehilite .hll { background-color: #373b41 }
.codehilite { background: #1d1f21; color: #c5c8c6 }
.codehilite .c { color: #969896 } /* Comment */
.codehilite .err { border: 1px solid #cc6666 } /* Error */
.codehilite .g { color: #c5c8c6 } /* Generic */
.codehilite .k { color: #81a2be } /* Keyword */
.codehilite .l { color: #cc6666 } /* Literal */
.codehilite .o { color: #c5c8c6 } /* Operator */
.codehilite .x { color: #c5c8c6 } /* Other */
.codehilite .p { color: #c5c8c6 } /* Punctuation */
@w0ng
w0ng / a.rb
Created September 6, 2012 15:35
infinality warnings
┌─[/etc/fonts/conf.d]
└─╼ sudo pacman -Sy fontconfig
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
warning: fontconfig-2.10.1-2 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...
@w0ng
w0ng / 30-metric-aliases.conf
Created September 6, 2012 16:39
30-metric-aliases.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Alias similar/metric-compatible families from various sources:
PostScript fonts:
Helvetica
Times
Courier
@w0ng
w0ng / updatedb.conf
Created September 22, 2012 16:14
/etc/updatedb.conf
PRUNE_BIND_MOUNTS = "yes"
PRUNEFS = "9p afs anon_inodefs auto autofs bdev binfmt_misc cgroup cifs coda configfs cpuset cramfs debugfs devpts devtmpfs ecryptfs exofs ftpfs fuse fuse.encfs fuse.sshfs fusectl gfs gfs2 hugetlbfs inotifyfs iso9660 jffs2 lustre mqueue ncpfs nfs nfs4 nfsd pipefs proc ramfs rootfs rpc_pipefs securityfs selinuxfs sfs shfs smbfs sockfs sshfs sysfs tmpfs ubifs udf usbfs vboxsf"
PRUNENAMES = ".git .hg .svn"
PRUNEPATHS = "/afs /media /mnt/cdrom /mnt/data0 /mnt/data1 /mnt/iso /mnt/usb /net /sfs /tmp /udev /var/cache /var/lib/pacman/local /var/lock /var/run /var/spool /var/tmp"
@w0ng
w0ng / 60-group-non-tt-fonts.conf
Created September 29, 2012 00:48
temp workaround for Infinality warnings
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- ##Style: common -->
<!-- Make these fonts use autohint slight hinting -->
<!-- Makes only horizontal stems align to pixels. Truer to glyph -->
<!-- A list of non TT instructed fonts -->
@w0ng
w0ng / 60-group-tt-fonts.conf
Created September 29, 2012 00:49
temp workaround for Infinality warnings
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- ##Style: common -->
<!-- A list of TT instructed fonts that are verified
to look OK with infinality patches -->
<match target="font">
@w0ng
w0ng / 62-tt-monospace-rendering.conf
Created September 29, 2012 00:49
temp workaround for Infinality warnings
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- ##Style: common -->
<!-- OVERRIDE SETTINGS -->
<!-- Monochrome BCI for these fonts (circa Windows 98) -->
<!-- This will make them look like crisp bitmap fonts. -->
<!-- This should only be used by fonts that contain good TrueType instructions -->
@w0ng
w0ng / 62-tt-traced-bitmap-rendering.conf
Created September 29, 2012 00:49
temp workaround for Infinality warnings
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- ##Style: common -->
<!-- OVERRIDE SETTINGS -->
<!-- Make these fonts use no antialiasing or hinting (circa DOS / X11) -->
<!-- This should only be used on TTF outline fonts made from traced bitmaps and/or containing embedded bitmaps -->
<match target="font">
@w0ng
w0ng / 80-selective-rendering-inf-win-lin.conf
Created September 29, 2012 00:49
temp workaround for Infinality warnings
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- ##Style: infinality, win7, winxp, win98, linux -->
<!-- ****************************************************************** -->
<!-- *********** SELECTIVE RENDERING FOR CERTAIN SITUATIONS *********** -->
<!-- ****************************************************************** -->