Skip to content

Instantly share code, notes, and snippets.

View venkateshshukla's full-sized avatar

Venkatesh Shukla venkateshshukla

View GitHub Profile
@venkateshshukla
venkateshshukla / AndroidDevLinux
Last active September 19, 2023 04:20
Setting up your Linux for Android Application Development
Step 1. Preparation
--------------------
First take care of the dependencies for Android Application Development.
Dependencies are -
1. Java
2. ant
3. Eclipse and Android Development tools (IDE)
4. Android SDK and NDK
5. adb
@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.

@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
###########
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 / 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/