Author: Binny V A

A philosopher programmer who specializes in backend development and stoicism.

Get URL Headers from Linux Command Line

Show the headers of an URL from the command line. This will need perl, lwp installed on the system. lwp-request…

git status Without the Untracked Files

Don’t show the untracked files in git status git status | perl -pe “exit if(/Untracked files\:/)”

Alarm Command in Linux

Command to create an Alarm in Linux echo ‘xmessage “Hello”‘|at 19:00

Crontab Commands

Some command to set, view and remove cron jobs crontab -e #Edit Crons crontab -l #List all crons crontab -r…

Installing a Ruby Gem

Use this command to install a ruby gem in Linux – you must be connected to the net sudo gem…

Compress PHP Output from .htaccess

Compress all PHP output by adding this line to .htaccess file php_value output_handler ob_gzhandler

A Simple Logging Function for JavaScript

Prints all the arguments of the function. This function uses console.log if firebug is available – else, uses alert. function…

Chainable interface in JavaScript

Creating Chainable interfaces in javascript… (function() { function _init() { return this; } _init.prototype = { “myFunction”: function() { return…

Create a Permanent Alias in Fish Shell

This is how you create a permanent alias is fish… alias x=’exit’ save_function x

Date Command

Create the MySQL format date(YYYY-MM-DD) using the date command date +%Y-%m-%d