Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
require 'rubygems'
require 'aws/s3'
module S3Util
def self.upload_file(local_file)
c() { cd ~/Dropbox/dev/$1; }
_c() { _files -W ~/Dropbox/dev -/; }
compdef _c c
#!/bin/bash
echo "body {-webkit-transform: rotate(1deg); -webkit-filter: blur(1px);}" >> ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/Custom.css

Todo.rb

Todo.rb is a simple command-line tool for managing todos. It's minimal, straightforward, and you can use it with your favorite text editor.

Getting Started

Todo.rb doesn't require any third-party gems so you can copy the file anywhere and use it as long as it's executable:

@dtrce
dtrce / codeclimate.rb
Created March 27, 2014 03:43
code climate script
#!/usr/bin/env ruby
require 'fileutils'
if Dir.exists?(ENV['CODECLIMATE_PATH']) == false
abort "CODECLIMATE_PATH variable not set or invalid path"
end
@cc_path = ENV['CODECLIMATE_PATH']
@repo_name = Dir.pwd.split('/').last
@dtrce
dtrce / GistList!.md
Created October 4, 2014 21:41
Try GistList for iOS! http://gistlist.io/

##alt text GistList: TODO for coders alt text

Keybase proof

I hereby claim:

  • I am dtrce on github.
  • I am djavia (https://keybase.io/djavia) on keybase.
  • I have a public key ASBUgdM3Mr5ACCGsbXx5uE2Ux5J8YwjiSRmqhFeqP6T_UAo

To claim this, I am signing this object: