Skip to content

Instantly share code, notes, and snippets.

View siddharthvipul's full-sized avatar

Vipul Siddharth siddharthvipul

View GitHub Profile
@siddharthvipul
siddharthvipul / api2.py
Last active January 6, 2020 12:17
api_v2.py
# -*- coding: utf-8 -*-
import time
import base64
import openstack
from ConfigParser import ConfigParser
from duffy.database import db
from urlparse import urlparse
from functools import wraps
from flask import Blueprint, request, jsonify, abort, current_app
from duffy.models import HostSchema, Session, SessionSchema, Project
@siddharthvipul
siddharthvipul / _.py
Last active January 6, 2020 12:17
api_v1.py
# -*- coding: utf-8 -*-
import datetime
from flask import Blueprint, request, jsonify, abort, current_app
from functools import wraps
from duffy.models import Host, HostSchema, Session, SessionSchema, Project
from duffy.database import db
blueprint = Blueprint('api_v1', __name__)
@siddharthvipul
siddharthvipul / alias
Created December 17, 2019 09:56
alias
# AUTOCOLOR {{{
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
##}}
# LS {{{
alias ls='ls -hF --sort=extension --color=auto'
set -g default-terminal "screen-256color"
set -g status-justify centre
setw -g monitor-activity on
set -g visual-activity on
setw -g mode-keys vi
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix

Keybase proof

I hereby claim:

  • I am siddharthvipul on github.
  • I am siddharthvipul (https://keybase.io/siddharthvipul) on keybase.
  • I have a public key ASBdzZ4dOgvaKZuQLz_A8XYTlkIv5zPhGxMPQo_DmL08qAo

To claim this, I am signing this object:

@siddharthvipul
siddharthvipul / weechat.conf
Last active April 16, 2018 03:08
my weechat.conf file
#
# weechat -- weechat.conf
#
# WARNING: It is NOT recommended to edit this file by hand,
# especially if WeeChat is running.
#
# Use /set or similar command to change settings in WeeChat.
#
# For more info, see: https://weechat.org/doc/quickstart
#
@siddharthvipul
siddharthvipul / vimrc
Last active September 13, 2019 08:20
my vimrc file
" don't make vim compatible with vi
set nocompatible
" make vim try to detect file types and load plugins for them
filetype on
filetype plugin on
filetype indent on
" encoding is utf-8
set encoding=utf-8