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
--- | |
- hosts: workstations | |
remote_user: j | |
sudo: | |
vars: | |
home_dir: /Users/j | |
share_dir: {{home_dir}}/Dropbox | |
npm_path: /usr/local/bin/npm | |
tasks: |
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/python | |
# -*- coding: utf-8 -*- | |
DOCUMENTATION= ''' | |
--- | |
module: osx_defaults | |
short_description: set/retrieve user defaults on Mac OS X | |
description: | |
- Reads, writes, and delete Mac OS X user defaults, requires that | |
the defaults utility is present |
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
APIKEY = "03724E57-E596-B87B-7CD1-585B3FD3AE99"; | |
CmdUtils.CreateCommand({ | |
name: "track", | |
homepage: "http://tracker.216brew.com/", | |
author: { name: "Joseph Anthony Pasquale Holsten", email: "joseph@josephholsten.com"}, | |
contributors: ["Joseph Anthony Pasquale Holsten"], | |
license: "MIT", | |
description: "Record your measurements to your <a href='http://tracker.216brew.com/'>Tracker</a>", | |
help: "Enter a record to track in natural language, amount type date", |
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 | |
# Copyright (c) 2009 Joseph Anthony Pasquale Holsten <joseph@josephholsten.com> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /> | |
<title>measurements: index</title> | |
<link href="/stylesheets/tracker.css?1233610581" media="screen" rel="stylesheet" type="text/css" /> | |
<script src="/javascripts/prototype.js?1233610581" type="text/javascript"></script> | |
<script src="/javascripts/effects.js?1233610581" type="text/javascript"></script> |
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/sh | |
# script to backup common files | |
# see also ~/.backupignore, ~/.archiveignore | |
print_usage () { | |
#echo "Usage: ${0##*/} -l" | |
echo "Usage: `basename $0` [-l | -x | -r]" | |
return 0 | |
} | |
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
set source_folders to the selection of application "Finder" | |
set destination_folder to choose folder with prompt "Select folder to merge into:" | |
CopyAndMergeFolders from source_folders into destination_folder | |
to CopyAndMergeFolders from sourceFolders into destinationFolder | |
if (count sourceFolders) is equal to 0 then error "No source files selected" | |
set dest_path to quoted form of POSIX path of (destinationFolder as alias) | |
set src_paths to "" | |
repeat with n in sourceFolders |
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
def pretty_factory_name name | |
name.to_s.gsub '_', ' ' | |
end | |
Factory.factories.each do |name, factory| | |
Given( /^an? #{pretty_factory_name name} exists$/ ) do | |
Factory(name) | |
end | |
Given( /^an? #{pretty_factory_name name} exists with an? (.*) of "([^"]*)"$/ ) do |attr, value| | |
Factory(name, attr.gsub(' ', '_') => value) | |
end |
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/sh | |
base='http://github.com' | |
if [ $1 ]; then | |
file=`git ls-files --full-name $1`; | |
fi | |
current=`git status -s -b | head -1 | cut -d' ' -f2` | |
remote=`git config branch.$current.remote` | |
if [ "$remote" = "" ] ; then |
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
development: | |
database: dev | |
adapter: postgresql | |
test: | |
database: test | |
adapter: postgresql | |
cucumber: | |
database: test |
OlderNewer