Skip to content

Instantly share code, notes, and snippets.

View garrett's full-sized avatar
🏠
Working from home, as usual 😉

Garrett LeSage garrett

🏠
Working from home, as usual 😉
View GitHub Profile
@garrett
garrett / gdocs-survey-printable.userstyle.css
Created November 10, 2008 18:00
userstyle for Google docs survey results, in a printable form (toggle it off to make it usable after printing)
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("spreadsheets.google.com") {
#ss-body {
height: auto !important;
overflow: visible !important;
overflow-y: visible !important;
display: inline !important;
font-size: 0.9em;
@garrett
garrett / muinshee
Created January 6, 2009 17:29
Start Banshee with the Muine-like UI (Muinshee)
#!/bin/bash
# Hack in some quick 64-bit support
test $CPU = x86_64 && arch="64"
prefix=/usr
libdir=$prefix/lib$arch
exec_asm="Muinshee.exe"
MONO_EXE=$libdir/banshee-1/$exec_asm
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
@garrett
garrett / do-contextmenu.patch
Created March 2, 2009 12:02
patch to make GNOME Do's contextual menu (in docky mode) much more usable, by moving the window list closer to the icon and removing the "remove from dock" item
=== modified file 'Do.Interface.Linux.Docky/src/Docky.Interface/Docky.Interface.Items/ApplicationDockItem.cs'
--- Do.Interface.Linux.Docky/src/Docky.Interface/Docky.Interface.Items/ApplicationDockItem.cs 2009-03-01 23:01:00 +0000
+++ Do.Interface.Linux.Docky/src/Docky.Interface/Docky.Interface.Items/ApplicationDockItem.cs 2009-03-02 11:58:57 +0000
@@ -305,16 +305,16 @@
public IEnumerable<AbstractMenuArgs> GetMenuItems ()
{
- foreach (Wnck.Window window in VisibleWindows)
- yield return new WindowMenuButtonArgs (window, window.Name, WindowIcon);
-
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>none</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hinting" >
/**
* from http://getsatisfaction.com/schillmania/topics/using_soundmanager_2_as_jquery_plugin
*/
$.playable = function( url, settings ) {
var sm = soundManager,
playable = arguments.callee;
sm.url = url;
sm.consoleOnly = window.location.hash.match(/console$/i);
sm.debugMode = window.location.hash.match(/^#debug/i);
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("twitter.com") {
html {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
With a couple of lines in your ~/.gitconfig file,
you will be able to check out Gnome projects like this:
git clone gnome:nautilus
If you want to check out git repos anonymously,
these are the ones to add:
[url "git://git.gnome.org/"]
@garrett
garrett / test-theme.sh
Created June 15, 2011 15:51
A stupidly simple script to test the Adwaita Firefox theme
#!/bin/bash
cd theme
# I'm using "fastjar" — customize this line to use whatever you're using to make jar files
fastjar cvf ~/.mozilla/firefox/*.default/extensions/{451500c0-902c-11e0-91e4-0800200c9a66}.xpi *
# Switch back to the original dir
cd -
@garrett
garrett / stylish-gmail.css
Created July 1, 2011 01:40
Userstyle for the new Google Mail preview theme
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("mail.google.com") {
div[role=button] {
padding: 3px 6px !important;
}
div[role=button]:not(:first-child):hover {
padding: 3px 6px 3px 5px !important;