Skip to content

Instantly share code, notes, and snippets.

@fabiofl
Created March 3, 2014 21:14
Show Gist options
  • Save fabiofl/9334734 to your computer and use it in GitHub Desktop.
Save fabiofl/9334734 to your computer and use it in GitHub Desktop.
http://lmgtfy.com/ link generator for TextExpander.
#!/usr/bin/env ruby
require 'uri'
param = "%clipboard".strip
url = "http://lmgtfy.com/?q="
query = URI.encode(param)
puts "#{url}#{query}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment