These days vim is preferred editor, and have started using it at work and home alike. That means my vimrc kept evolving and had to sync at both the sites. Thought would back it up some where I can handily find it when required.
This post has all the contents of my vimrc as backup[Read More]
deleting all matching files recursively
I am a big fan of linux command line utils and work with many of those on windows as well. One of the commands I have started to like is xargs. I Like the way you could compose commands with pipes. Have tried using xargs on windows without much success.
One of the things I often use this is to clean temp directories of certain log files. My linux commands would have been:
find . -name "*.syslog" | xargs rm
Now I could have done this on windows as:
dir /s /b *.syslog | xargs rm
but xargs dies with environment being too large, instead had to switch to a less elegant solution:
forfiles /s /p . /M *.syslog /c "cmd /c rm @path"
simple nodejs server
controlling processor frequency
My aging MacBook Pro just got a new life (Apple replaced main-board due to graphics card issue), it worked out pretty good. Thought it is perhaps time to upgrade to Windows 10. Now that i have upgraded fans won’t stop whizzing, they were running at full speed even when the CPU is idling.
Seems like some sort of bug, didn’t wanted to mess around much hardware setups and did not wanted to install fan speed controlling utility as well. Found a cool setting that gave me what i wanted, thing is to clamp down frequency.[Read More]