Author: Shishir Sharma

  • How Emacs changed my life

    I became aware of Emacs in my college days but kept using ViM, I was naive and thought no one uses Vim except me. I was proud because I was using something a hacker uses. I actively started using Emacs in the first year of my job. I was working for Curl project in Persistent […]

  • Batch Convert Image to PDF

    Batch Convert Image to PDF

    A friend of mine was looking for a way to batch-convert images into PDFs. Here’s a simple algorithm for converting JPG to PDF using jpg2pdf.org. Since I use a Mac, the tutorial will be for Mac/Linux. For Mac, install Brew from here. For Linux, install imagemagick and poppler-utils. Use this one-line script to convert all […]

  • WordPress Author-Info

    WordPress Author-Info

    WordPress as a very nice Author-info, I like it. By default it is off unless there are more then one author post on your blog. You can turn it on without installing any stupid plugin or code edit. Follow these steps. First you should update description in your WordPress user profile Open phpmyadmin or equivalent. […]

  • 2012 Royal Enfield Classic 500 specifications

    I am a proud owner of 2012 Royal Enfiled Classic 500cc . I rarely find complete specification on Internet so I uploaded myself.

  • Melpa for emacs

    Melpa for emacs

    Melpa is a Emacs mode repository. If you are not using Melpa on Emacs 24 you are really missing something. Put this in your .emacs file. Restart and run M-x list-packages

  • Tmux with native scrollback

    Tmux with native scrollback

    Here is how to get colors working and allow native scrollback in terminal.app file: .tmux.conf Show sort hostname in tab title of tmux. Really helpful trick. file: .bashrc

  • Share shell history across multiple sessions

    I use iTerm and a lot of terminal tabs. Terminal history is something which is important to me, it lets me backtrack my steps. Just add the following code in your .profile

  • Grab the net with Arduino

    How to access a website with multiple virtual hosts from Arduino Ethernet Shield. The problem is if you have used Arduino Ethernet Shield, then you know that you can connect a IP, But if the IP has multiple virtual hosts, it will only connect to default virtual host. If it is commercial shared VPS, You […]

  • IRB Console with history and logging

    I spend most of my time working with IRB or Rails/console. I have settled on these settings over time as they provide basic logging and IRB history. To use them, simply add the following lines to the ~/.irbrc file (create the file if it doesn’t already exist): View the code on Gist.

  • Arduino Ethernet Shield and Webclient

    Arduino Ethernet Shield and Webclient

    First thing you do when you get a Ethernet Shield for Arduino (in my case Duemilanove). You will be uploading various example sketches. I was doing the same Ardoino was working flawlessly and then I got stuck in WebClient sketch. I did all the things I could do. Reset Arduino. Reset Ethernet Shield. Change Ethernet cat5 […]