Skip to content

Instantly share code, notes, and snippets.

View spiffytech's full-sized avatar

spiffytech spiffytech

View GitHub Profile
@evanwalsh
evanwalsh / import.rb
Last active October 31, 2023 17:27
I imported my Jekyll from Squarespace's Wordpress XML with this
View import.rb
# coding: utf-8
require 'rubygems'
require 'hpricot'
require 'fileutils'
require 'safe_yaml'
require 'time'
module JekyllImport
# This importer takes a wordpress.xml file, which can be exported from your
@lusis
lusis / keytool.rb
Created March 26, 2012 04:51
recipe for adding certs to keytool
View keytool.rb
keystore = "/etc/java-6-sun/security/cacerts"
keystore_pass = "foobar"
# you'll need foo.cert et. al. in files/default
certs = %w{foo bar bang}
certs.each do |cert|
cookbook_file "#{Chef::Config[:file_cache_path]}/#{cert}.cert" do
source "#{cert}.cert"
end