Skip to content

Instantly share code, notes, and snippets.

View venkateshshukla's full-sized avatar

Venkatesh Shukla venkateshshukla

View GitHub Profile
oozie.coord.application.path=hdfs://quickstart.cloudera:8020/user/cloudera/oozie/basic
@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
@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/

@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 / 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 / .gitignore
Last active August 29, 2015 14:13
Arrange Images as per their timestamps
*.pyc
@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 / 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')
Heading
Body
Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>
@venkateshshukla
venkateshshukla / AccessPointHotspot.sh
Last active January 25, 2021 12:35
Make a access point hotspot in Fedora
#!/bin/bash
#Initial wifi interface configuration
ifconfig wlp8s0 up 10.20.30.1 netmask 255.255.255.0
sleep 2
###########Start dnsmasq, modify if required##########
if [ -z "$(ps -e | grep dnsmasq)" ] then
dnsmasq
fi
###########