Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Moving some sensitive stuff, deleting crap I don't use.

  • Loading branch information...
commit ebb940a2758f0aa63cfe704d805347647c55424b 1 parent 7130885
Jeff Gardner authored February 10, 2013
3  .gitignore
... ...
@@ -1,2 +1,3 @@
1 1
 vim/vim.symlink/.netrwhist
2  
-git/gitconfig.symlink
  2
+git/gitconfig.symlink
  3
+system/ssh-aliases.zsh
2  README.markdown
Source Rendered
@@ -72,8 +72,6 @@ bubble bath.
72 72
 
73 73
 - If you want some more colors for things like `ls`, install grc: `brew install
74 74
   grc`.
75  
-- If you install the excellent [rvm](http://rvm.beginrescueend.com) to manage
76  
-  multiple rubies, your current branch will show up in the prompt. Bonus.
77 75
 
78 76
 ## bugs
79 77
 
68  bin/cloudapp
... ...
@@ -1,68 +0,0 @@
1  
-#!/usr/bin/env ruby
2  
-#
3  
-# cloudapp
4  
-# Zach Holman / @holman
5  
-#
6  
-# Uploads a file from the command line to CloudApp, drops it into your 
7  
-# clipboard (on a Mac, at least).
8  
-#
9  
-# Example:
10  
-#
11  
-#   cloudapp drunk-blake.png
12  
-#
13  
-# This requires Aaron Russell's cloudapp_api gem:
14  
-#
15  
-#   gem install cloudapp_api
16  
-#
17  
-# Requires you set your CloudApp credentials in ~/.cloudapp as a simple file of:
18  
-#
19  
-#   email
20  
-#   password
21  
-
22  
-require 'rubygems'
23  
-
24  
-['json', 'cloudapp_api'].each do |gem|
25  
-  begin
26  
-    require gem
27  
-  rescue LoadError
28  
-    puts "You need to install #{gem}: gem install #{gem}"
29  
-    exit!(1)
30  
-  end
31  
-end
32  
-
33  
-config_file = "#{ENV['HOME']}/.cloudapp"
34  
-unless File.exist?(config_file)
35  
-  puts "You need to type your email and password (one per line) into "+
36  
-       "`~/.cloudapp`"
37  
-  exit!(1)
38  
-end
39  
-
40  
-email,password = File.read(config_file).split("\n")
41  
-
42  
-class HTTParty::Response
43  
-  # Apparently HTTPOK.ok? IS NOT OKAY WTFFFFFFFFFFUUUUUUUUUUUUUU
44  
-  # LETS MONKEY PATCH IT I FEEL OKAY ABOUT IT
45  
-  def ok? ; true end
46  
-end
47  
-
48  
-if ARGV[0].nil?
49  
-   puts "You need to specify a file to upload."
50  
-   exit!(1)
51  
-end
52  
-
53  
-urls = []
54  
-ARGV.each do |x|
55  
-  CloudApp.authenticate(email,password)
56  
-  puts "Attempting to upload #{x}"
57  
-  url = CloudApp::Item.create(:upload, {:file => x}).url
58  
-
59  
-  # Say it for good measure.
60  
-  puts "Uploaded #{x} to #{url}"
61  
-
62  
-  # Get the embed link.
63  
-  url = "#{url}/#{ARGV[0].split('/').last}"
64  
-  urls << url
65  
-end
66  
-
67  
-# Copy it to your (Mac's) clipboard.
68  
-`echo '#{urls.join(',')}' | tr -d "\n" | pbcopy`
8  bin/git-current-branch
... ...
@@ -1,8 +0,0 @@
1  
-#!/bin/sh
2  
-
3  
-# Print the current Git branch.
4  
-#
5  
-# AUTHOR:
6  
-#  Geoffrey Grosenbach http://peepcode.com
7  
-
8  
-git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||'
30  bin/movieme
... ...
@@ -1,30 +0,0 @@
1  
-#!/bin/sh
2  
-#
3  
-# MOVIE ME as in: "MOVIE ME AN ANIMATED GIF FROM THIS MOVIE, DAMMIT"
4  
-#
5  
-# Creates an animated gif from a movie file. Uploads to CloudApp. You must also
6  
-# have `gifme` and `cloudapp` in your $PATH.
7  
-#
8  
-#   $1 - the path to the movie we're converting.
9  
-#   $2 - the start time of the finished product.
10  
-#        This can be in seconds, or it also accepts the "hh:mm:ss[.xxx]" format.
11  
-#   $3 - the duration of the video sequence.
12  
-#        This can be in seconds, or it also accepts the "hh:mm:ss[.xxx]" format.
13  
-#
14  
-# Examples:
15  
-#
16  
-#   movieme <path> <start-time> <duration>
17  
-#   ~/Desktop/dr-strangelove.mp4 23:12 3
18  
-#   ~/Desktop/holman-backflip-on-fire.mov 3.9 1.75
19  
-
20  
-# cleanup
21  
-rm -rf /tmp/movieme
22  
-
23  
-# create tmp dir
24  
-mkdir -p /tmp/movieme
25  
-
26  
-# split the movie into constituent frames
27  
-ffmpeg -i $1 -f image2 -ss $2 -t $3 -r 7 /tmp/movieme/d-%05d.png
28  
-
29  
-# ANIMATE
30  
-gifme /tmp/movieme/* -d 0
56  bin/mustacheme
... ...
@@ -1,56 +0,0 @@
1  
-#!/bin/sh
2  
-#
3  
-# mustacheme 
4  
-#   expanded from an idea from Rick Olson (@technoweenie)
5  
-#
6  
-# Takes a .gif, splits it into constituent frames, mustaches each, restitches
7  
-# the gif, and uploads to cloudapp.
8  
-#
9  
-# This leverages the nifty service mustachify.me, which will analyze your photo,
10  
-# identify faces, and add a mustache to your image.
11  
-#
12  
-# If the .gif is a remote file, we'll download it and blow it up locally.
13  
-#
14  
-#   $1 - the path of the gif
15  
-#
16  
-# Examples:
17  
-#
18  
-#   mustacheme holman-jumping-off-cliff-into-butter.gif
19  
-#   mustacheme http://github.com/holman/butter/blob/master/holman-butter.gif
20  
-#
21  
-# Dependencies:
22  
-#
23  
-#   - ImageMagick. If you're on a Mac, run:
24  
-#       brew install imagemagick
25  
-#   - wget
26  
-#   - cloudapp: https://github.com/holman/dotfiles/blob/master/bin/cloudapp
27  
-#   - gifme:    https://github.com/holman/gifme
28  
-
29  
-set -e
30  
-
31  
-# Set up mustacheme temporary working directory
32  
-output=/tmp/mustacheme
33  
-rm -rf $output
34  
-mkdir $output
35  
-
36  
-if [[ $1 == http* ]]
37  
-then
38  
-  wget $1 -O /tmp/mustache-download.gif
39  
-  file=/tmp/mustache-download.gif
40  
-else
41  
-  file="$1"
42  
-fi
43  
-
44  
-# Blow apart the GIF
45  
-convert $1 -coalesce $output/frame_%03d.gif
46  
-
47  
-# Mustache each frame
48  
-for frame in $output/*.gif
49  
-do
50  
-  url=$(cloudapp $frame | grep Uploaded | awk '{print substr($0,13)}')
51  
-  url="$url/$(basename $frame)"
52  
-  wget "http://mustachify.me/?src=$url" -O "$frame-stache"
53  
-done
54  
-
55  
-# Ding! Fries are done.
56  
-gifme $output/*-stache -d 0
46  bin/showme
... ...
@@ -1,46 +0,0 @@
1  
-#!/usr/bin/env ruby
2  
-#
3  
-# SHOW ME
4  
-# Takes X pictures of you via your iSight, animates them, uploads them to CloudApp, and puts
5  
-# the url in your clipboard
6  
-#
7  
-# https://gist.github.com/832125
8  
-#
9  
-# This uses a bunch of projects to make the magic happen, mostly thanks 
10  
-# to Zach Holman: http://github.com/holman
11  
-#
12  
-#
13  
-# required software:
14  
-#
15  
-# ImageMagick
16  
-# CloudApp - http://www.getcloudapp.com/
17  
-# cloudapp script: https://github.com/holman/dotfiles/blob/master/bin/cloudapp
18  
-# gifme script: https://github.com/holman/dotfiles/blob/master/bin/gifme
19  
-#
20  
-# Make sure each of those are set up correctly
21  
-#
22  
-# isightcapture - http://www.intergalactic.de/pages/iSight.html
23  
-# download isightcapture and put it in your path
24  
-#
25  
-# Now you can take X shots from your iSight and push them to the clowd
26  
-#
27  
-# Ex: $ showme <num>
28  
-
29  
-shots = 1
30  
-shots = ARGV[0].to_i if ARGV[0]
31  
-
32  
-puts "Taking #{shots} shots.."
33  
-
34  
-output = []
35  
-
36  
-1.upto(shots) do |shot|
37  
-  puts "\nPREPARE FOR SHOT #{shot}"
38  
-  filenm = "/tmp/isightcap-#{shot}.jpg"
39  
-  `isightcapture #{filenm} > /dev/null`
40  
-  output << filenm
41  
-  puts 7.chr
42  
-end
43  
-
44  
-
45  
-files = output.join(' ')
46  
-puts `gifme #{files}`
12  netnewswire/reclining.nnwstyle/Info.plist
... ...
@@ -1,12 +0,0 @@
1  
-<?xml version="1.0" encoding="UTF-8"?>
2  
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3  
-<plist version="1.0">
4  
-<dict>
5  
-	<key>CreatorHomePage</key>
6  
-	<string>http://github.com/holman/dotfiles</string>
7  
-	<key>CreatorName</key>
8  
-	<string>Zach Holman</string>
9  
-	<key>Version</key>
10  
-	<integer>1</integer>
11  
-</dict>
12  
-</plist>
13  netnewswire/reclining.nnwstyle/Readme.markdown
Source Rendered
... ...
@@ -1,13 +0,0 @@
1  
-# RECLINING: I'm getting used to it
2  
-
3  
-### A tidy little theme for NetNewsWire
4  
-
5  
-<a href="http://cl.ly/24QJ"><img src="http://cl.ly/24QJ/content" width="500" /></a>
6  
-
7  
-### Installation
8  
-
9  
-With you double-clicking on `reclining.nnwstyle`, there will be advantages to each.
10  
-
11  
-### Pow Pow
12  
-
13  
-Love, [@holman](http://twitter.com/holman).
69  netnewswire/reclining.nnwstyle/stylesheet.css
... ...
@@ -1,69 +0,0 @@
1  
-body{
2  
-  margin: 0;
3  
-  padding: 0;
4  
-  -webkit-font-smoothing: antialiased;
5  
-}
6  
-#header{
7  
-  background:
8  
-    -webkit-gradient(linear, left top, left bottom, from(#F2F5FF), to(#C5E0E3));
9  
-}
10  
-#header{
11  
-  color: #335054;
12  
-  text-shadow: 1px 1px 0 #fff;
13  
-  font-family: Helvetica, sans-serif;
14  
-  padding: 10px 0 10px 30px;
15  
-}
16  
-#header #favicon{
17  
-  float: right;
18  
-}
19  
-#header #favicon span{
20  
-  visibility: hidden;
21  
-}
22  
-#header #favicon img{
23  
-  margin-right: 10px;
24  
-  visibility: visible;
25  
-  float: right;
26  
-  display: block;
27  
-  border: 1px solid #fff;
28  
-}
29  
-#header .newsItemSource a{
30  
-  font-size: 1.25em;
31  
-  color: #335054;
32  
-  text-decoration: none;
33  
-  padding: 5px 10px 5px 0;
34  
-}
35  
-#header .newsItemSource img{
36  
-  display: none;
37  
-}
38  
-#header .newsItemDate{
39  
-  display: none;
40  
-}
41  
-#header .newsItemCreator{
42  
-  color: #999;
43  
-  padding-left: 3px;
44  
-  font-size: .9em;
45  
-}
46  
-#blendsplit{
47  
-  height: 7px;
48  
-  background:
49  
-    -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#fff));
50  
-  border-top: 1px solid #95A8AB;
51  
-  margin-bottom: 15px;
52  
-}
53  
-#content #title{
54  
-  padding-bottom: 10px;
55  
-}
56  
-#content #title a{
57  
-  color: #333;
58  
-  font-size: 2.25em;
59  
-  text-decoration: none;
60  
-}
61  
-#content #title .newsItemDate{
62  
-  display: none;
63  
-}
64  
-#content #title .newsItemCreator{
65  
-  display: none;
66  
-}
67  
-#content{
68  
-  padding: .5em 30px;
69  
-}
16  netnewswire/reclining.nnwstyle/template.html
... ...
@@ -1,16 +0,0 @@
1  
-<div id="main">
2  
-  <div id="header">
3  
-    [[newsitem_dateline]]
4  
-    <div id="favicon">[[newsitem_dateline]]</div>
5  
-  </div>
6  
-
7  
-  <div id="blendsplit"></div>
8  
-
9  
-  <div id="content">
10  
-    <div id="title">
11  
-      [[newsitem_title]]
12  
-    </div>
13  
-
14  
-    [[newsitem_description]]
15  
-  </div>
16  
-</div>
6  system/aliases.zsh
@@ -28,8 +28,4 @@ function take {
28 28
 }
29 29
 
30 30
 # open dotfiles project with textmate
31  
-alias dotme='subl ~/.dotfiles'
32  
-
33  
-# ssh aliases
34  
-alias mtssh='ssh jeffgardner.org@s39233.gridserver.com'
35  
-alias inssh="ssh jeff@dev.intercom.io"
  31
+alias dotme='subl ~/.dotfiles'
2  zsh/zshrc.symlink
@@ -28,4 +28,4 @@ compinit

0 notes on commit ebb940a

Please sign in to comment.
Something went wrong with that request. Please try again.