Skip to content

Instantly share code, notes, and snippets.

@Ceda
Ceda / TMBundle LESS
Created October 18, 2013 14:45
Texmate Less TMBundle - Compile to less if in css dir not in subdir
#!/usr/bin/env ruby
dir, base = File.split(File.dirname(ENV["TM_FILEPATH"]))
if (base=="css")
file = STDIN.read[/lessc: ([^*])+\.less/, 1] || ENV["TM_FILEPATH"].chomp(File.extname(ENV["TM_FILEPATH"]))
system("lessc \"#{file}.less\" > \"#{file}.css\"")
end
Open Terminal.
Type this command:
cd /System/Library/CoreServices/Finder.app/Contents/Resources/English.lproj/
Now, the file we want to mess around is the InfoPlist.strings. But unfortunately, this file cannot be edited directly using text editor in Lion. But no worries. Run this command to make it editable.
sudo plutil -convert xml1 InfoPlist.strings
Now the file should be editable and readable. Use your favorite text editor and open InfoPlist.strings. I just used vim
sudo vim InfoPlist.strings
@Ceda
Ceda / Gemfile
Created December 11, 2012 01:11 — forked from baldwindavid/Gemfile
The guts of a page tree using slugs - acts_as_tree, friendly_id - Allows for routes like /about/our-people/developers
gem 'acts_as_tree'
gem "friendly_id", "~> 4.0.1"