Muffinresearch Labs by Stuart Colville

Archive for the 'Snippets' Category

  1. Insert a tab character in vim when expand tabs is on - 18th September 2012
  2. GNU screen: open tab in current working directory - 8th November 2011
  3. Ubuntu: add-apt-repository: command not found - 31st August 2011
  4. Brewing with a French Press - 6th September 2010
  5. Using Loggerhead with mod_wsgi - 5th December 2009
  6. Ubuntu: Turn off changing workspace with mouse wheel - 2nd June 2009
  7. Ubuntu: Mounting a TrueCrypt volume at startup or from the CLI - 5th April 2009
  8. Mac OSX: Visor Development on Github - 11th March 2009
  9. Install lxml on OSX - 5th March 2009
  10. EuroDjangoCon Prague - 3rd March 2009
  11. OSX Mysql app: Sequel Pro - 22nd December 2008
  12. Inline Code Finder - 19th December 2008
  13. Python 3.0 Released - 4th December 2008
  14. Inspiring a Sense of Ownership - 10th November 2008
  15. VMware Server: Convert Fixed Disk-images to Growable - 18th September 2008
  16. SVN Tip: Get List of Files Changed Between Revisions - 15th September 2008
  17. DjangoCon 2008 Announced - 13th July 2008
  18. The Troggs Tapes - 3rd July 2008
  19. Use Growl for Entourage Notifications - 4th June 2008
  20. Standalone mac battery charger - 17th May 2008
  21. Django Admin Ominigraffle Stencil - 13th May 2008
  22. Scrolling issue in Leopard cured with PRAM reset - 4th May 2008
  23. Using git with Django’s SVN repository - 24th January 2008
  24. Nokia Multimedia Transfer for Mac - 13th December 2007
  25. Microsoft buys Multimap - 12th December 2007
  26. xkcd on python - 5th December 2007
  27. Windows Vista: Require users to press Ctrl+alt+del to login - 29th November 2007
  28. Python or PHP? - 27th November 2007
  29. Amazon launches DRM free MP3 service in the US - 25th September 2007
  30. BASH Tip: Alternative to expr for arithmetic - 30th August 2007
  31. BASH: Open FileMerge from CLI - 16th August 2007
  32. Sneaky hfs_fsck post reboot - 10th July 2007
  33. Before you go and install Safari 3.0 on your mac - 12th June 2007
  34. Parallels tip: Pause VMs to conserve resources - 23rd May 2007
  35. Parallels tip: Upgrading to Ubuntu Feisty from Edgy - 15th May 2007
  36. Quicktip for mac: turning capslock into control - 17th April 2007
  37. My Cousin’s photo stream on Flickr - 12th April 2007
  38. WebDev Toolbar Beta 3 for IE - 2nd March 2007
  39. Automatic merging and versioning of CSS/JS files with PHP - 14th December 2006
  40. Crestock Photoshop Competition - 24th November 2006
  41. YUI Bundle for Textmate - 2nd November 2006
  42. Export Microformats to your phone from your mac - 26th October 2006
  43. Watch the Apple Keynote address - 8th August 2006
  44. Geek in the Park - 31st July 2006
  45. Gmail adds select all conversations feature - 5th July 2006
  46. Beginning JavaScript - 26th June 2006
  47. Whassup with Google Analytics? - 23rd June 2006
  48. Camino 1.02 Released - 22nd June 2006
  49. Opera 9 released - 22nd June 2006
  50. What external hard drive do you use? - 1st June 2006
  51. Loopy Control Structures - 4th May 2006
  52. Friday Afternoon Videos - 21st April 2006
  53. Apple Boot Camp software for XP installation - 6th April 2006
  54. From DHTML to DOM scripting - 30th March 2006
  55. Del.icio.us adds experimental private saving - 24th March 2006
  56. 9rules launches 9charities - 17th March 2006
  57. Google Earth For Mac - 17th January 2006
  58. Regex Buddy - 22nd November 2005
  59. Muffin Research out of control - 11th October 2005

Insert a tab character in vim when expand tabs is on|(0)

I have vim set-up to use spaces in place of tabs. Sometimes you need to use an actual tab e.g. editing a Makefile. Now whilst it’s possible to change settings so that tabs are used for specific files, a quick tip to remember is to simply type in insert mode:

Ctrl+v tab

That is Ctrl and “V” and hit the tab key, et voila you’ve entered an actual tab.

GNU screen: open tab in current working directory|(1)

A nice trick for having screen open a new tab in the same directory as the one you’re currently in. To use it add it to your .screenrc

# Open new window in current dir.
bind c stuff "screen -X chdir \$PWD;screen^M"
bind ^c stuff "screen -X chdir \$PWD;screen^M"

Hat tip: mteckert on SuperUser.com

Photos on Flickr

© Copyright 2004-13 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.592s.