Skip to content

Instantly share code, notes, and snippets.

View vnu's full-sized avatar

Vinu Charanya (@vinucharanya) vnu

View GitHub Profile
@vnu
vnu / macbook-settings.md
Created December 12, 2012 07:20
Setting up my Macbook Air!!

#SETTING UP MACBOOK AIR

To Change the hostname that comes in the terminal: $ hostname - Displays your current hostname

$ sudo hostname new_name

Changes it to new_name. Restart the terminal to see the changes

@vnu
vnu / BinaryTreeTest.java
Created November 1, 2012 20:13
Binary Search Tree using Collections
/*
* Reference : Introduction to Java Programming Liang
*
*/
import java.util.ArrayList;
import java.util.Iterator;
public class BinaryTreeTest {
public static void main(String[] args){
@vnu
vnu / gist:3258553
Created August 4, 2012 16:07
Android dumpsys denial to access programmatically

How to log the dumpsys information periodically?

What is dumpsys and what are its benefits?

Dumpsys is a very interesting android shell command that dumps the state of various running services and also other system information on std output.

Benefits :

Retrieve various system information in a simple string representation Analyse the various stats like cpuinfo, batteryinfo, meminfo, wifi, location etc., to analyze the overall performance of the device and also the individual performance of various application and services.