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
#!/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` |
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.
Countless reasons- I'm quite the Linux fanatic. The biggest one for me is
# 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 "$@" |