This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<match target="pattern"> | |
<edit mode="append" name="autohint"> | |
<bool>false</bool> | |
</edit> | |
</match> | |
<match target="pattern"> | |
<edit mode="append" name="rgba"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<!-- Reject Helvetica bitmap fonts --> | |
<selectfont> | |
<rejectfont> | |
<pattern> | |
<patelt name="scalable"><bool>false</bool></patelt> | |
<patelt name="family"><string>Helvetica</string></patelt> | |
</pattern> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/gnuplot | |
set term png | |
set output "yourmom.png" | |
set terminal png size 600,300 | |
set grid nopolar | |
# example | |
# Aug 24 2010,01,21,username |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
use lib '/var/lib/netdisco'; | |
use netdisco qw/:all/; | |
config("/var/lib/netdisco/netdisco.conf"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Net::SNMP; | |
use Getopt::Long; | |
sub snmp_error { | |
my $session = shift; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Messing around with MBRs is fun. For example, you can make overlapping | |
partitions. Well, not with fdisk, of course. You need to make the volume to | |
clone first, then shuffle it around with dd like so: | |
dd if=/dev/sda bs=1 skip=446 seek=462 of=/dev/sda count=16 | |
dd if=/dev/sda bs=1 skip=446 seek=478 of=/dev/sda count=16 | |
dd if=/dev/sda bs=1 skip=446 seek=494 of=/dev/sda count=16 | |
Once this is done, kick the kernel to reread the MBR (I usually do this with | |
fdisk because it amuses me that it will read and save this wacky partition |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import vobject | |
import sys | |
import os | |
from urllib import urlopen | |
# Hack for RFC violations | |
vobject.icalendar.escapableCharList = '\\;,Nn"\'&' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my @s; | |
my $hop = 0; | |
while(<>) { | |
chomp; |
NewerOlder