Skip to content

Instantly share code, notes, and snippets.

@phoolish
phoolish / auto-move-windows.config
Created September 25, 2012 08:50
auto-move-windows config
gsettings set org.gnome.shell.extensions.auto-move-windows application-list "['banshee.desktop:2','chromium-browser.desktop:2','thunderbird.desktop:2','shotwell.desktop:2','sublime.desktop:3','virtualbox.desktop:4', 'empathy.desktop:2']"
@phoolish
phoolish / .gitme.conf
Created September 24, 2012 20:14
Set git config.email/user based on path
[DEFAULT]
name=My Name
email=email@address.com
[work]
path=/media/drive/work
name=My Name
email=email@address.com
[play]
path=/media/drive/play
name=My Other Name
@phoolish
phoolish / plugin_to_gem.rb
Created May 21, 2012 09:11 — forked from edavis10/plugin_to_gem.rb
Script to convert a Rails/Redmine plugin to a RubyGem without Jeweler
#!/usr/bin/env ruby
# Usage:
# ruby plugin_to_gem.rb my_plugin_directory
require 'fileutils'
require 'uri'
require 'erb'
@plugin_dir = ARGV[0]
def gemspec_content