Skip to content

Instantly share code, notes, and snippets.


Aravinthan.K aravinthanpnk

Block or report user

Report or block aravinthanpnk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:d726724035bab69f10a769e8eedb70d6
for file in /proc/*/status ; do awk '/Tgid|VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | grep kB | sort -k 3 -n
aravinthanpnk / build.gradle
Created Aug 2, 2018 — forked from mizanRahman/build.gradle
ssh remote deploy with gradle
View build.gradle
buildscript {
repositories {
maven {
url ""
dependencies {
classpath "org.hidetake:gradle-ssh-plugin:1.1.4"
View angularjs-$compile.js
function MyDirective ($templateRequest, $compile) {
var templateBase = '/directives/my_directive/views/';
var childTemplates = {
child1: 'child1.html',
child2: 'child2.html'
return {
aravinthanpnk /
Created Jan 20, 2018 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.



Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
View gist:c181418f0373aa96be2691ca5ca31203
app.filter('bytes', function() {
return function(bytes, precision) {
if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) return '-';
if (typeof precision === 'undefined') precision = 1;
var units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'],
number = Math.floor(Math.log(bytes) / Math.log(1024));
return (bytes / Math.pow(1024, Math.floor(number))).toFixed(precision) + ' ' + units[number];
aravinthanpnk / perfectelementary.bash
Created Jun 6, 2016
HowTo Install the perfect Elementary-OS
View perfectelementary.bash
#Download Elementary OS from here:
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - | sudo apt-key add -
sudo sh -c 'echo "deb stable main" >> /etc/apt/sources.list.d/google-chrome.list'
You can’t perform that action at this time.