when you press f9 'paste' is on , press f9 again and 'paste' is off, and so forth (works in insert-mode and command-mode)

2010-08-02 1 min read bash Linux
<a class="zem_slink" title="Vim (text editor)" rel="homepage" href="http://www.vim.org/">vim&#8217;s pastetoggle: when you press f9 &#8217;paste&#8217; is on , press f9 again and &#8217;paste&#8217; is off, and so forth (works in <a class="zem_slink" title="Insert key" rel="wikipedia" href="http://en.wikipedia.org/wiki/Insert_key">insert-mode and command-mode) $ nmap :set paste!:set paste? Sets as paste toggle, with visual confirmation of state * View this command to comment, vote or add to favourites * View all commands by Vilemirth commandlinefu.com by David Winterbottom (codeinthehole. Continue reading

Adding a sub-menu in the wordpress admin menu :)

2010-07-29 2 min read Wordpress
For the impatient ones, first the code: (in wp-admin folder, open the file menu.php) and locate the code: $submenu[&#8217;edit.php&#8217;][10] = array( _x(&#8217;Add New&#8217;, &#8217;post&#8217;), &#8217;edit_posts&#8217;, &#8217;post-new.php&#8217; ); and add the below: $submenu[&#8217;edit.php&#8217;][7] = array( _x(&#8217;Pending&#8217;, &#8217;post&#8217;), &#8217;edit_posts&#8217;, &#8217;edit.php?post_status=pending&post_type=post&#8217; ); And now the explanation and why do you need this 🙂 Problem: There is no direct mechanism to access the pending posts in WP admin. I generally post through email and mark them as pending. Continue reading

importing outlook pst files in evolution in Fedora 13 ( Goddard)

2010-07-25 1 min read Fedora Linux
If you were using outlook and moved to some other <a class="zem_slink freebase/en/e-mail_client" title="Email client" rel="wikipedia" href="http://en.wikipedia.org/wiki/Email_client">mail client then you know the pain of moving the mails from outlook mail from outlook to any other client. If you are using evolution on <a class="zem_slink freebase/en/fedora" title="Fedora" rel="homepage" href="http://fedoraproject.org/">Fedora, then you are in luck. Just install the plug-in and select the file to import as simple as that. sudo yum install evolution-pst Continue reading

How To Install Ailurus 10.05 On Fedora | HowtoForge - Linux Howtos and Tutorials

2010-07-23 1 min read Fedora Linux
For those of you who don&#8217;t know about ailurus: Ailurus is cross-<a class="zem_slink" title="Linux distribution" rel="wikipedia" href="http://en.wikipedia.org/wiki/Linux_distribution">Linux-distribution <a class="zem_slink" title="GNU General Public License" rel="wikipedia" href="http://en.wikipedia.org/wiki/GNU_General_Public_License">GPL <a class="zem_slink" title="Computer software" rel="wikipedia" href="http://en.wikipedia.org/wiki/Computer_software">software, which aims at making Linux easier to use, for newcomers. And the features include: Ailurus can … display Linux skills install popular software change <a class="zem_slink" title="GNOME" rel="homepage" href="http://www.gnome.org/">GNOME settings display <a class="zem_slink" title="Hardware" rel="wikipedia" href="http://en.wikipedia.org/wiki/Hardware">hardware information enable some third party repositories# clean apt/yum cache# backup and recover apt/yum status# the features marked with &#8221;#&#8221; support Ubuntu/Fedora only Continue reading

Linux command to repeat a string n times - Super User

2010-07-20 1 min read bash Linux
I was working on something and needed to output the string n times. I have required this even to print a line with &#8217;-&#8217; or &#8217;=&#8217; but this time I badly wanted it in bash. So I searched google and found this: printf &#8221;Amit Agarwal%.0s&#8221; {1..5} Explanations and other examples: <a href="http://superuser.com/questions/86340/linux-command-to-repeat-a-string-n-times">http://superuser.com/questions/86340/linux-command-to-repeat-a-string-n-times<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www.rateitall.com/i-3177235-flat-rate-us-terminations.aspx">1 reviews of Flat-Rate US Terminations (rateitall.com) <li class="zemanta-article-ul-li"><a href="http://www. Continue reading

Unixmen - Tips to reduce memory usage on Firefox

2010-07-14 1 min read Firefox Uncategorized
A nice aritcle on reducing the memory usage of firefox on <a class="zem_slink" title="Linux" rel="wikipedia" href="http://en.wikipedia.org/wiki/Linux">Linux. There are some things in life everyone is looking for and no one ever finds and there are other things that people keep finding and re-finding and inventing and re-inventing. Reducing memory usage for <a class="zem_slink" title="Firefox" rel="homepage" href="http://www.mozilla.com/firefox/">Firefox and speeding it up is one such thing. So, here is another story to reduce the memory usage of firefox. Continue reading

Verify all the paths in the PATH directory

2010-06-08 1 min read bash Learning Linux
Here is the command to test that all the directories in your path actually exist. (<a class="zem_slink freebase/en/internal_field_separator" title="Internal field separator" rel="wikipedia" href="http://en.wikipedia.org/wiki/Internal_field_separator">IFS=:;for p in $PATH; do test -d $p || echo $p; done) And the explanation : Set the IFS to &#8221;:&#8221; now we loop through the PATH variable and test all the directories with &#8221;test -d&#8221; Here is another version without IFS: for i in ${PATH//:/ };do test -d $i || echo $i;done Continue reading
Older posts