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 / 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 / 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 / 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: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 / .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 / .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 / 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 / Show Containing Folder.sh
Last active December 19, 2015 16:19
Quickly open the folder of a file (great for searches) using this script. Put this very simple bash script in your Nautilus scripts folder (~/.local/share/nautilus/scripts/) Right click, go to scripts, then "Show Containing Folder" to open a Nautilus window for things like search results, so you can figure out where the file came from and see ot…
#!/bin/bash
# Licensed under CC0 / Public Domain
# http://creativecommons.org/publicdomain/zero/1.0/
for i in $NAUTILUS_SCRIPT_SELECTED_URIS; do
nautilus $i;
done;
@garrett
garrett / map.geojson
Created August 13, 2013 16:25
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@garrett
garrett / _navbar.haml
Last active December 24, 2015 09:29
middleman navbar from yaml
-# If data_source isn't specified in locals, then default to "navigation"
-#
-# Example for custom data_source:
-#
-# = partial :navbar, locals: { data_source: "navigation" }
-#
- data_source ||= "navigation"
-# Additional classes are also supported on the navbar
-#