Skip to content

Instantly share code, notes, and snippets.

View hced's full-sized avatar

Henrik Cederblad hced

  • H. Cederblad
  • Göteborg, Sweden
View GitHub Profile
@hced
hced / install_cairo.sh
Last active May 17, 2018 11:33
Attempt to fix node-gyp error: No package 'cairo' found
# Fix node-gyp error: "No package 'cairo' found"
#
# Installs Pixman, Cairo and (if absent) pkg-config
# N.B. You may want to first cd into a preferred source directory (e.g. ~/src).
#
# Desc:
# This script attempts to fix a node-gyp error, "No package 'cairo' found",
# (that in my case appeared) when trying to npm install --save metalsmith-stylus.
# Basically, installing Cairo + Pixman (http://www.cairographics.org/) did the
# trick for me. (Might come in handy in similar situations with the same error.)
@hced
hced / stickyfooter.html
Created September 5, 2012 12:57
Sticky Footer (credits to Ryan Faith)
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
* {
margin: 0;
}
html, body {
@hced
hced / prompt.sh
Created May 18, 2012 09:00
My current shell prompt
# ---------
# prompt.sh
# ---------
####################################################################
# #
# This is probably a mess, with bad scoping and what not, but it #
# works and looks just awesome. (Modified for Mac OS X.) #
# #