Skip to content

Instantly share code, notes, and snippets.

View SrivastavaKshitij's full-sized avatar
💭
If you wait for luck to turn up, life becomes boring - Mikhail Tal

Kshitij Srivastava SrivastavaKshitij

💭
If you wait for luck to turn up, life becomes boring - Mikhail Tal
View GitHub Profile
@SrivastavaKshitij
SrivastavaKshitij / vim.txt
Created December 13, 2017 15:00
Vim settings
set nu
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
@SrivastavaKshitij
SrivastavaKshitij / gist:1be3ca5f1fca9f2ba3de0724b51d5ef3
Created May 4, 2017 20:53
Running process remotely and independently

Running the program on server remotely

  • to be run sequentially
description command
run python script python xx.py
run the following command : this pauses the process CTRL + Z ( this works for ubuntu server)
put the process in background bg
@SrivastavaKshitij
SrivastavaKshitij / one_time_remote_access.txt
Last active April 24, 2017 15:29
Remote access by typing password only once
This document shows step by step procedure on how to SSH without using password everytime
Type the following commands:
1. cd .ssh
2. vim config
when you open config file, type the following:
host snake
@SrivastavaKshitij
SrivastavaKshitij / jupyter_notebook_remote.txt
Created April 24, 2017 15:26
Remote accessing Jupyter Notebook running on a server
This document is about running jupyter notebook on a server and accessing it on a local machine.
On the remote machine, start jupyter notebook
remote_user@remote_host$ ipython notebook --no-browser --port=8889
when the notebook will start, it will generate a token.
On the local machine, start SSH tunnel