Skip to content

Instantly share code, notes, and snippets.

View venkateshshukla's full-sized avatar

Venkatesh Shukla venkateshshukla

View GitHub Profile
@venkateshshukla
venkateshshukla / 1AndroidNDKEclipse.md
Last active August 29, 2015 13:57
Setting up Eclipse for Android Application Development using Native Development Kit (NDK)

Setting up Eclipse for NDK

To make eclipse compatible for android application development. (Please note. These steps are implemented on Linux. For other OS, steps may differ)

####Preparation

Visit https://gist.github.com/venkateshshukla/9736261 for detailed instruction on preparation.

Heading
Body
Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>
@venkateshshukla
venkateshshukla / fn_name_debug.py
Last active August 29, 2015 14:03
While debugging, print the name of functions as they are called.
import sys
import os
name = sys.argv[1]
f = open(name, 'r')
g = open(name + '.temp', 'w')
text = f.read()
if '#include <stdio.h>' not in text:
g.write('#include <stdio.h>\n')
@venkateshshukla
venkateshshukla / .vimrc
Created December 20, 2014 13:58
My vimrc
" Subsurface coding style
filetype plugin indent on
filetype detect
set cindent tabstop=8 shiftwidth=8 cinoptions=l1,:0
" TODO: extern "C" gets indented
" TODO: content of class blocks gets indented
" And some sane defaults, optional, but quite nice
set nocompatible
syntax on
@venkateshshukla
venkateshshukla / .gitignore
Last active August 29, 2015 14:13
Arrange Images as per their timestamps
*.pyc
@venkateshshukla
venkateshshukla / client.ovpn
Last active August 29, 2015 14:14
openvpn configuration
client
dev tun
proto tcp
http-proxy 10.1.1.19 80 venky.auth basic
http-proxy-retry
remote a.b.c.d 80
ca ca.crt
cert venkatesh.crt
key venkatesh.key
comp-lzo
@venkateshshukla
venkateshshukla / .screenrc
Created February 1, 2015 18:01
screen config
defscrollback = unlimited
vbell off
startup_message off
shell bash
altscreen
hardstatus on
hardstatus alwayslastline '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]'
@venkateshshukla
venkateshshukla / API.md
Last active August 29, 2015 14:22
API Documentation of th-editorial-server

Request to api/list

A POST request to api/list with a timestamp attribute of latest article would be replied with a JSON consisting of the following

Key Explanation
1. r_timestamp the timestamp of the recieved request
2. u_timestamp the updated timestamp, i.e, the timestamp of the latest article being sent
3. num the total number of entries being sent
oozie.coord.application.path=hdfs://quickstart.cloudera:8020/user/cloudera/oozie/basic
@venkateshshukla
venkateshshukla / README.md
Last active October 14, 2016 06:31
Linux config files for various stuff like vim, screen, bashrc etc.

####Config Files for Linux As I change OS, I have to add these configuration files over and over again. A gist having these files would help. This is more of a personal TODO than an actual project.

Move these files into your home repo and add a dot (.) in front of their filenames.

Also, move the setprompt to ~/bin/