Skip to content

Instantly share code, notes, and snippets.

View netsmertia's full-sized avatar

Natwar Singh netsmertia

View GitHub Profile
@netsmertia
netsmertia / .vimrc
Last active August 29, 2015 14:02
My .vimrc
"GENERAL
"==============================================
set background=dark " Assume a dark background
syntax on " Syntax highlighting
filetype plugin indent on " Automatically detect file types.
if !has('gui')
set term=$TERM " Make arrow and other keys work
endif
@netsmertia
netsmertia / VimSetupREADS
Created August 17, 2014 18:19
VimSetupREADS
##Development Installs
1. install **xcode-developer tools**
2. install **homebrew**
>`ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"`
3. install **vim**
>`brew install vim --override-system-vim --with-lua`
<h2 id="development-installs">Development Installs</h2>
<ol>
<li><p>install <strong>xcode-developer tools</strong></p></li>
<li><p>install <strong>homebrew</strong></p>
<blockquote>
<p><code>ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"</code></p>
</blockquote></li>
<li><p>install <strong>vim</strong></p>
@netsmertia
netsmertia / MacDevSetup.md
Last active August 29, 2015 14:05
MacSetupREADS

[TOC]

##Development Installs ####1. install xcode-developer tools

Can be downoaded from www.deverloper.apple.com
OR
Install with xcode-select --install


@netsmertia
netsmertia / .vimrc
Created August 17, 2014 19:14
General purpose vimrc
"GENERAL
"==============================================
set background=dark " Assume a dark background
syntax on " Syntax highlighting
filetype plugin indent on " Automatically detect file types.
if !has('gui')
set term=$TERM " Make arrow and other keys work
endif
@netsmertia
netsmertia / .vimrc
Created August 17, 2014 19:17
My .vimrc file
"GENERAL
"==============================================
set background=dark " Assume a dark background
syntax on " Syntax highlighting
filetype plugin indent on " Automatically detect file types.
if !has('gui')
set term=$TERM " Make arrow and other keys work
endif
@netsmertia
netsmertia / gitREADS.md
Created September 7, 2014 17:06
gitREADS

Some git command that I read/learn while facing some kind of problem or looking for something different.

####Reset all changes after last commit

$ git reset HEAD --hard
@netsmertia
netsmertia / preview.js
Created October 5, 2014 19:24
Preview Image before uploading
$('#image-browse-button').change(function() {
previewImage(this);
});
function previewImage(input) {
if(input.files && input.files[0]) {
var reader= new FileReader(),
image = new Image();
reader.onload = function(_file) {
image.src = _file.target.result;
@netsmertia
netsmertia / List_lan_users
Last active August 29, 2015 14:18
How to list all computers in a windows wi-fi network?
Well I have used following procedure usually:
Go To RUN
Write CMD
Ping the server if you know or your gateway. Even if there is requested timed out.
type "arp -a "
It will usually list down all the IP's and Computers with their Mac Addresses
If you want to use GUI one tool I recommend is : IPScan form http://www.eusing.com/ipscan/free_ip_scanner.htm
Although it a light application 433KB almost but a freeware and very effective and always work for me. 100 % result!
sudo apt-get install liblua5.1-dev
sudo mkdir /usr/include/lua5.1/include/
sudo cp /usr/include/lua5.1/* /usr/include/lua5.1/include/
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.1.so /usr/local/lib/liblua.so
hg clone https://code.google.com/p/vim/
cd vim
./configure --with-features=huge \
--enable-perlinterp \
--enable-rubyinterp \
--enable-pythoninterp=yes \