This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'activeresource' | |
# Get your API key from your SliceManager here: | |
# https://manage.slicehost.com/api/ | |
# and put it here: | |
API_PASSWORD = 'your_api_key_goes_here' | |
unless ARGV.size == 2 && ARGV[1].end_with?('.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test Gist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Replaces form controls with plain text | |
function unform(form_class) | |
{ | |
$('form.'+form_class+' input[type=text]').each( | |
function() { | |
$(this).after('<span class="proxy">' + $(this).attr('value') + '</span>'); | |
$(this).hide(); | |
} | |
).next().click( | |
function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# This should fix your NS records if you used the old version of slicedns.rb. | |
# Check to see if any of your zones list ns1/2/3.slicehost.com as a nameserver. | |
# It will change ALL NS records that have ns*.slicehost.com to ns*.slicehost.net | |
require 'rubygems' | |
require 'activeresource' | |
API_PASSWORD = 'your_api_key' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/ruby | |
require 'fileutils' | |
unless ARGV.size > 1 | |
puts "Usage: #{__FILE__} [email protected] email [ email ] ..." | |
exit | |
end | |
QMAIL_DIR = "/var/qmail/mailnames" | |
alias_address = ARGV.shift | |
domain = alias_address.match(/[^@]+$/).to_s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body class="<%= controller_name -%> <%= action_name -%>"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%body{:class => "#{controller_name} #{action_name}"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd "/Users/_YOU_/Library/Application Support/Notational Data/" | |
# Make sure you've already set up the git repo | |
git add . | |
git commit -a -m "Simplenote Sync" | |
# Get SimplenoteSync here: http://fletcherpenney.net/other_projects/simplenotesync/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page Not Found</title> | |
<style type="text/css" media="screen"> | |
body { | |
background: #f0f0f0; | |
font: normal 18px sans-serif; | |
width: 400px; |
OlderNewer