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 / LWN-beautifier.css
Last active October 13, 2015 21:20
Linux Weekly News (lwn.net) beautifier
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("lwn.net") {
body {
font-family: source sans pro, helvetica, arial, sans-serif;
}
.Page {
max-width: 60em;
@garrett
garrett / .inputrc
Created July 16, 2012 09:33
My super-useful ~/.inputrc
"\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 / .jshintrc
Created September 20, 2011 16:35
My ~/.jshintrc
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 200, // Maximum errors before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"node" : true,
@garrett
garrett / gist:1141853
Created August 12, 2011 10:52
scroll reverse for Linux
echo "pointer = 1 2 3 5 4 6 7 8 9 10 11 12" >> ~/.Xmodmap; xmodmap ~/.Xmodmap
@garrett
garrett / coffee_script.lang
Created August 8, 2011 08:23
Quick patch to make gedit's coffeescript language support recognize one-line block comments
<?xml version="1.0" encoding="UTF-8"?>
<!--
Author: Marc Harter <[email protected]>
Copyright (C) 2004 Marc Harter <[email protected]>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
@garrett
garrett / gist:1088170
Created July 17, 2011 22:31 — forked from hbons/gist:1087702
SparkleShare changeset JSON
{
"lastUpdated": 3453482,
"changeSet": [
{
"userName": "HylkeBons",
"userEmail": "[email protected]",
"timestamp": 3453452,
"path": "/home/hbons/SparkleShare",
"folder": "gnome-design",
"revision": "fc92a3636b72b185556e8d19c9c2efd3f220ac48",
@garrett
garrett / gist:1087700
Created July 17, 2011 15:37 — forked from hbons/gist:1087696
SparkleShare changeset JSON
{
"lastUpdated": 3453482,
"changes": [
{
"userName": "HylkeBons",
"userEmail": "[email protected]",
"timestamp": 3453452,
"path": "/home/hbons/SparkleShare",
"folder": "gnome-design",
"revision": "fc92a3636b72b185556e8d19c9c2efd3f220ac48",
@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;
@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 -
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/"]