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 "forgery" | |
require "yaml" | |
1..10.times do |p| | |
entry = Hash.new | |
entry['note'] = Forgery::LoremIpsum.text( :sentence, 2,{:random => 1}) | |
entry['date'] = Forgery::Date.date(:future => false,:min_delta => 0,:max_delta => 10) |
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 "appscript" | |
include Appscript | |
require "active_support" | |
require "rss/1.0" | |
require "rss/2.0" | |
require "open-uri" | |
require "bitly" | |
require "cgi" |
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
inbox = File.open("/Users/Mike/Dropbox/org/inbox.org", "a") | |
ARGF.each do |f| | |
task = f.split("|") | |
line = "\n\n* TODO #{task[0].strip}\n" | |
line << "DEADLINE: <#{task[1].strip}>\n" if task[1] | |
inbox << line | |
end | |
inbox.close |
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
(defvar mph-packages | |
'(ack-and-a-half auctex clojure-mode coffee-mode deft expand-region | |
gist groovy-mode haml-mode haskell-mode inf-ruby | |
magit magithub markdown-mode paredit projectile python | |
sass-mode rainbow-mode scss-mode solarized-theme | |
volatile-highlights yaml-mode yari zenburn-theme) | |
"A list of packages to ensure are installed at launch.") | |
(defun mph-packages-installed-p () | |
(loop for p in mph-packages |
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
<!-- in WordPress: Appearance -> Editor -> page.php --> | |
<form action="http://www.google.com/cse" id="cse-search-box"> | |
<div> | |
<input type="hidden" name="cx" value="017884045025332504017:9pk9oihqlsu" /> | |
<input type="hidden" name="ie" value="UTF-8" /> | |
<input type="text" name="q" class="gsc-input" size="31" /> | |
<input type="submit" name="sa" class="searchbtn" value="Search" /> | |
</div> |
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
RECEIPT_FILE=/var/db/receipts/com.apple.pkg.DeveloperToolsCLI.bom | |
RECEIPT_PLIST=/var/db/receipts/com.apple.pkg.DeveloperToolsCLI.plist | |
if [ ! -f "$RECEIPT_FILE" ] | |
then | |
echo "Command Line Tools not installed." | |
exit 1 | |
fi | |
echo "Command Line Tools installed, removing ..." |
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
tell application "Notes" | |
set theNotes to every note of the folder "Notes" | |
repeat with thisNote in theNotes | |
set myTitle to the name of thisNote | |
set myText to the body of thisNote | |
set myCreateDate to the creation date of thisNote | |
tell application "Evernote" | |
create note with html myText ¬ | |
title myTitle ¬ | |
created myCreateDate ¬ |
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/ruby | |
require "rubygems" | |
require "liquid" | |
template = <<TEMPLATE | |
{% assign version = '4.0.2' %} | |
{% if version contains '3.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
# Configuration file for dircolors, a utility to help you set the | |
# LS_COLORS environment variable used by GNU ls with the --color option. | |
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the | |
# slackware version of dircolors) are recognized but ignored. | |
# Below, there should be one TERM entry for each termtype that is colorizable | |
TERM linux | |
TERM linux-c | |
TERM mach-color |
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
alias ls="/usr/local/bin/gls" | |
if [ "$TERM" != "dumb" ]; then | |
export LS_OPTIONS='--color=auto' | |
eval \`gdircolors ~/.dir_colors\` | |
fi |