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 / Why carousels are awful.md
Last active February 12, 2018 16:51
Why carousels are awful

Why carousels are awful

This is from a rant of mine on IRC a while back. It has been minimally cleaned up.

  1. tons of interaction issues
  2. if the content changes under the mouse, you click on the wrong thing
  3. timing is either too long or too short
  4. often not accessible
  5. everything but the first is not important, as it's often not seen
  6. obscures content by default
@garrett
garrett / mw-export.sh
Created December 13, 2013 17:36
Stupidly simple shell script to export MediaWiki pages (with metadata), as XML
#!/bin/bash
# This uses the mediawiki_cli gem; be sure to have it installed
## Usage
#
# Please pass the URL to your site's wiki prefix to this command, like so:
# sh mw-export.sh "http://wikisite/wiki/"
#
@garrett
garrett / software-teams-design.md
Last active August 29, 2015 14:14
what software development teams should know about design
  1. programmers and managers need to fully embrace design — without "buy-in", designing is futile (as it'll never get implemented properly — or, in many cases, implemented at all)
  2. design is an iterative process where everyone is involved — not just a designer
  3. design needs to be present at all stages of the project cycle: before, during, and after
  4. design isn't just eyecandy; functionality is even more important (text/content is part of design too)
  5. designers should be treated as full team members, not some add-on
  6. design issues should have high priority too (if something is unusable or even sometimes looks unusable, then people can't use the software)
  7. designers are developers too (in fact, anyone who contributes to making software is a developer — not just programmers)
  8. good software requires design, documentation, project management, community engagement, marketing, etc. — in addition to programming
  9. a lot of designers are quite tech-savvy, but many aren't — regardless, it's okay to not k
@garrett
garrett / discover-jetdirect.sh
Last active August 29, 2015 14:15
discover local jetdirect printer IP addresses
#!/bin/sh
#
# A short script to discover HP JetDirect-enabled printers on your local network
#
# Requires: nmap, route, awk, grep
#
# On Fedora/RHEL/CentOS, you can install dependencies with:
# sudo yum install -y nmap net-tools curl gawk
#
# (Most of these commands will most likely be already installed.)
@garrett
garrett / fedora-home-server.md
Last active September 22, 2022 01:18
Fedora home server

Fedora Home Server

Basic idea

Make it very easy for anyone (even non-techy people) to set up a low-power, inexpensive home server with a Raspberry Pi 2* using Fedora.

* (possibly others later — start small, scale up)

Benefits

@garrett
garrett / webapp-ui-styleguide.md
Created March 8, 2016 14:38
Opinionated UI Styleguide for Web Applications

Opinionated UI Styleguide for Web Applications

Introduction

Web applications are different from web documents.

Web documents exist to share information in an article-like manner. This consists of articles, blogs, wiki pages, and so on. Some web documents have a few app-like elements to enhance their designs, but all web documents should fall back to working in every browser, even when JavaScript is turned off.

A web application, however, relies on JavaScript to function. Web applications need enhanced interaction.

@garrett
garrett / endless-images-download.md
Created June 2, 2016 09:51
Download EndlessOS 2.6.3 Images
@garrett
garrett / keybase.md
Created August 17, 2016 09:42
keybase proof

Keybase proof

I hereby claim:

  • I am garrett on github.
  • I am garrettl (https://keybase.io/garrettl) on keybase.
  • I have a public key ASC20dKKcJV2JaZexyAVB6uxdEKztptVgwoWh4NOqoaHNgo

To claim this, I am signing this object:

@garrett
garrett / librsvg.thumbnailer
Created April 7, 2017 17:59
SVG thumbnails in GNOME 3.24.0
[Thumbnailer Entry]
TryExec=/usr/bin/gdk-pixbuf-thumbnailer
Exec=/usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
MimeType=image/svg+xml;image/svg+xml-compressed;
@garrett
garrett / vim-responsive.css
Last active May 18, 2018 09:26
vim.org responsive hacks (for mobile support)
td {
/* Bump up line height to make text easier to read */
line-height: 1.4;
}
img:not([src*=spacer]) {
/* Non-spacer images should fit the width and scale down if necessary */
max-width: 100%;
height: auto;
}