(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| Generate ctags with `rake ctags` | |
| Run snipper.rb | |
| Put resulting ruby.snippets file where your snippet plugin can pick it up. (I'm using snipmate) |
| <?php | |
| /* | |
| Term Archive Pages: | |
| - http://example.com/recipes/dinner/ | |
| - http://example.com/recipes/breakfast,brunch/ | |
| Single Recipe Pages: | |
| - http://example.com/recipes/dinner/soup-title/ |
| set rnu | |
| au BufEnter * :set rnu | |
| au BufLeave * :set nu | |
| au WinEnter * :set rnu | |
| au WinLeave * :set nu | |
| au InsertEnter * :set nu | |
| au InsertLeave * :set rnu | |
| au FocusLost * :set nu | |
| au FocusGained * :set rnu |
| 0e3647e8592d35514a081243582536ed3de6734059001e3f535ce6271032 | |
| 334b041de124f73c18011a50e608097ac308ecee501337ec3e100854201d | |
| 40e127f51c10031d0133590b1e490f3514e05a54143d08222c2a4071e351 | |
| 45440b171d5c1b21342e021c3a0eee7373215c4024f0eb733cf006e2040c | |
| 22015e420b07ef21164d5935e82338452f42282c1836e42536284c450de3 | |
| 043b452e0268e7eb005a080b360f0642e6e342005217ef04a42f3e43113d | |
| 581e0829214202063d70030845e5301f5a5212ed0818e22f120b211b171b | |
| ea0b342957394717132307133f143a1357e9ed1f5023034147465c052616 | |
| 0c300b355c2051373a051851ee154a023723414c023a08171e1b4f17595e | |
| 550c3e13e80246320b0bec09362542243be42d1d5d060e203e1a0c66ef48 |
| #!/usr/bin/ruby | |
| =begin | |
| This script is designed to generate a simple html file with _all_ of your Pinboard.in bookmarks | |
| The HTML file can be added to Launchbar's index as a custom bookmark file and you can search | |
| your entire Pinboard.in collection instantly from Launchbar (by title only). It includes | |
| any applied tags as part of the title to aid in searching. | |
| This does no checking for deltas, it just grabs the whole bunch and overwrites the html file | |
| every time. Don't run it too frequently. |
| #!/usr/bin/env python | |
| """ | |
| This script helps migrating issues from Bitbucket to GitHub. | |
| It currently ignores milestones completly and doesn't care whether an issue is | |
| open, new or on hold. As long as it's not closed it's considered open. | |
| To use it, install python-bitbucket, PyGithub and ipdb. |
| ######################### | |
| # .gitignore file for Xcode4 and Xcode5 Source projects | |
| # | |
| # Apple bugs, waiting for Apple to fix/respond: | |
| # | |
| # 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? | |
| # | |
| # Version 2.6 | |
| # For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
| # |
| import os | |
| import markdown | |
| import requests | |
| import webbrowser | |
| pinToken = 'Put your Pinboard API token here' | |
| pinAPI = 'api.pinboard.in/v1/' | |
| pinGet = 'posts/all' | |
| pinURL = 'https://' + pinAPI + pinGet + '?auth_token=' + pinToken + '&toread=yes&format=json' |