Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_GB]=/home/<USERNAME>/.rvm/gems/ruby-1.9.3-p125/gems/redcar-icons-0.3/icons/redcar-icon-beta.png
Name[en_GB]=Redcar
Exec=/home/<USERNAME>/Documents/Scripts/start_redcar.sh
Name=Redcar
@matalangilbert
matalangilbert / flickr_single_tag_search.rb
Created April 3, 2012 14:21
Opens a random flickr photo, based on a supplied search tag term.
#!/usr/bin/env ruby
require 'flickraw'
require 'launchy'
FlickRaw.api_key = 'YOUR_API_KEY_HERE'
FlickRaw.shared_secret = 'YOUR_SHARED_SECRET_HERE'
results = flickr.photos.search(:tags => ARGV[0])
@matalangilbert
matalangilbert / autotest.bat
Created January 12, 2012 14:31
Mat G's Development Environment Launcher - collection of batch files. Place in folder in base of Rails Apps directory and lauch lde.bat <application_name>
bundle exec autotest
@matalangilbert
matalangilbert / .autotest
Created January 5, 2012 16:38
Mat G's Base Rails Files
require 'autotest/growl' # enable pop-up windows
require 'autotest/restart' # optional: forces autotest to pick the changes to this file
require 'autotest/timestamp' # optional: shows timestamps for test runs
require 'win32console'
#prevent triggering when certain files modified
Autotest.add_hook :initialize do |at|
%w{.svn .hg .git vendor public log .idea .komodoproject .komodotools}.each {|exception| at.add_exception(exception)}
end