Skip to content

Instantly share code, notes, and snippets.

View lpil's full-sized avatar

Louis Pilfold lpil

View GitHub Profile

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@lpil
lpil / print_jekyll_subdir_urls.rb
Last active August 29, 2015 14:06
Generate a list of URLs used by each jekyll site subdirectory of cwd
#!/usr/bin/env ruby
# encoding: utf-8
# Generate a list of URLs used by each jekyll site subdirectory of cwd
template = <<-END
---
layout: none
---
/*
#!/usr/bin/env ruby
# Jekyll sync and rebuild sites in subdirs
path = Dir.pwd
Dir.glob('*/').each do |website_dir|
Dir.chdir path + '/' + website_dir
puts "\e[32m#{Dir.pwd}\e[0m"
output = `git pull`

1. Who are you, and what do you do?

Hi Steven! I'm Louis Pilfold, I work for a London print/soft-as-a-service company doing web dev, site administration, automation, that kind of thing. I'm also a music lover who DJs electronic music with a Linux computer and a pair of turntables.

2. Why do you use Linux?

Countless reasons- I'm quite the Linux fanatic. The biggest one for me is

@lpil
lpil / gist:9444180
Last active August 29, 2015 13:57
.bashrc
# Coloured man pages
man() {
env LESS_TERMCAP_mb=$'\E[01;31m' \
LESS_TERMCAP_md=$'\E[01;38;5;74m' \
LESS_TERMCAP_me=$'\E[0m' \
LESS_TERMCAP_se=$'\E[0m' \
LESS_TERMCAP_so=$'\E[38;5;246m' \
LESS_TERMCAP_ue=$'\E[0m' \
LESS_TERMCAP_us=$'\E[04;38;5;146m' \
man "$@"