Skip to content

Instantly share code, notes, and snippets.

@SantoshSrinivas79
SantoshSrinivas79 / Using the command line on a terminal like a pro.md
Last active December 13, 2020 02:32
Using the command line on a terminal like a pro

Using the command line on a terminal like a pro

The terminal is extremely powerful and it is now my topmost choice in coding. Here are some useful commands for common tasks that will hopefully help appreciate the power of the command line!

  • List files sorted by time
    • ls -lt
  • List of files sorted by size
    • ls -alS
  • List of files from s3 ... only name:
  • s4cmd ls s3://tempbin/ | grep zerod_archive_ | awk '{print $NF}' | head
@SantoshSrinivas79
SantoshSrinivas79 / Resizing Images in nodeJS.md
Last active August 29, 2015 14:23
Resizing Images in nodeJS

Resizing Images in nodeJS

Sharp

Resize images using lovell/sharp

Installation

@SantoshSrinivas79
SantoshSrinivas79 / Making custom changes to a standard Sublime Text Packages.md
Created June 13, 2015 03:57
Making custom changes to a standard Sublime Text Packages

Making custom changes to a standard Sublime Text Packages

Let us look at how to make custom changes to a sublime text package. This is useful for couple of reasons:

  • Learn how existing packages work
  • Make modifications to existing packages
  • Make your own new packages!

You can go about this through the following steps:

@SantoshSrinivas79
SantoshSrinivas79 / Installing GraphicsMagick on OSX 10.10.md
Last active August 29, 2015 14:22
Installing GraphicsMagick on OSX 10.10

Installing GraphicsMagick on OSX 10.10

I had few problems installing GraphicsMagick on my OSX system. Installation via brew wasn't working the right way.

So, first I un-installed the brew versions just to make sure:

sudo brew uninstall --force graphicsmagick
sudo brew uninstall --force imagemagick
@SantoshSrinivas79
SantoshSrinivas79 / Working with MySQL from the terminal command line in Ubuntu 14.04.md
Last active May 16, 2016 12:14
Working with MySQL from the terminal command line in Ubuntu 14.04

Working with MySQL from the terminal command line in Ubuntu 14.04

Connect to the database

mysql -uroot -p

Show list of databases

@SantoshSrinivas79
SantoshSrinivas79 / Foreclosure Opportunities in India.md
Last active August 29, 2015 14:22
Foreclosure Opportunities in India

Foreclosure / Distressed Auction Opportunities in India

Auction Platforms

@SantoshSrinivas79
SantoshSrinivas79 / EasyPay - Online Aadhaar Hackathon - Submission.md
Last active August 29, 2015 14:22
EasyPay - Online Aadhaar Hackathon - Submission

#EasyPay - Online Aadhaar Hackathon - Submission

##Demonstration

A self explanatory demonstration of the application is at EasyPay. Please give a minute for the leaderboard to load. The application is not fully optimized yet! Please use the Google Chrome! :-)

##Introduction

@SantoshSrinivas79
SantoshSrinivas79 / Inject javascript into HTML pages from console.md
Last active May 12, 2021 05:51
Inject javascript into HTML pages from console

#Inject javascript into HTML pages from console

An easy way to inject Javascripts into the current loaded dom using the developer console in chrome.

jQuery

var script = document.createElement('script');
script.src = 'http://code.jquery.com/jquery-1.7.2.min.js';
@SantoshSrinivas79
SantoshSrinivas79 / Online Aadhaar Hackathon.md
Last active August 29, 2015 14:22
Online Aadhaar Hackathon

#Online Aadhaar Hackathon

##Meteor Development

  • Use HOMER as the base template. The views to be used are:
    • Landing Page
    • Projects
    • Login

Images to be resized to: 281 x 244