Skip to content

Instantly share code, notes, and snippets.

{"0":"#073642","1":"#dc322f","2":"#859900","3":"#b58900","4":"#268bd2","5":"#d33682","6":"#2aa198","7":"#eee8d5","8":"#002b36","9":"#cb4b16","10":"#586e75","11":"#657b83","12":"#839496","13":"#6c71c4","14":"#93a1a1","15":"#fdf6e3"}
FROM ubuntu:14.04
MAINTAINER Vaibhav Pujari <[email protected]>
RUN apt-get update
RUN apt-get install -y git \
wget \
vim \
build-essential \
g++
@vaibhav276
vaibhav276 / regex_replace.cpp
Last active October 8, 2015 09:37
Boost regex_replace example
#include <boost/regex.hpp>
#include <iostream>
using namespace std;
using namespace boost;
int main(int argc, char** argv)
{
string strBase;
cout << "Enter base string: ";
# Send mail with attachments
uuencode <filename> <filename> | mail -s "<subject>" [email protected]
# Redirect all output to file and console
<command> 2>&1 | tee <filename>
# Show commits diffrence between two branches
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative branch-A..branch-B
# Create patch
git format-patch <branch-to-compare-with> --stdout > <filename>
git format-patch commitStart^..commitLatest --stdout > <filename>
# Apply patch
git apply --check <filename>
git am --signoff < <filename>
set nocompatible " be iMproved, 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')
" let Vundle manage Vundle, required
@vaibhav276
vaibhav276 / putty_vaienv.reg
Created June 8, 2015 06:21
My PuTTy configuration (registry)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\vaienv]
"Present"=dword:00000001
"HostName"=""
"LogFileName"="putty.log"
"LogType"=dword:00000000
"LogFileClash"=dword:ffffffff
"LogFlush"=dword:00000001
"SSHLogOmitPasswords"=dword:00000001