Skip to content

Instantly share code, notes, and snippets.

View Sodaware's full-sized avatar

Phil Newton Sodaware

View GitHub Profile
@shanielh
shanielh / readme.md
Last active November 21, 2016 18:35
Witch!

Usage

./witch.sh terraform

Result

 _________________________________________
@ls-lukebowerman
ls-lukebowerman / sitemap.xml.erb
Created August 7, 2012 17:59
Sitemap (sitemaps.org) generator for Middleman
<% pages = sitemap.resources.find_all{|p| p.source_file.match(/\.html/) } %>
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<% pages.each do |p| %>
<url>
<loc>http://youdomain.com/<%=p.destination_path.gsub('/index.html','')%></loc>
<priority>0.7</priority>
</url>
<% end %>
</urlset>
@mikehale
mikehale / .guard.rb
Created June 22, 2012 15:02
Guardfile global ignore for .# emacs backup files
# Place this file in ~/.guard.rb and restart your guard process(es)
# to ignore emacs backup files for all your projects
ignore(/\/?\.\#/)