Skip to content

Instantly share code, notes, and snippets.

View vharish's full-sized avatar
🎯
Focusing

Harish vharish

🎯
Focusing
View GitHub Profile
@vharish
vharish / .cvimrc
Last active April 15, 2020 10:33 — forked from calorie/.cvimrc
.cvimrc
set nocncpcompletion
set nosmoothscroll
set nohud
set noregex
set noinsertmappings
set noautoupdategist
set nochangelog
set typelinkhints
set defaultnewtabpage
let scrollduration = 10
@vharish
vharish / gpg-import-and-export-instructions.md
Created March 19, 2018 10:54 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@vharish
vharish / php-ignite-ubuntu-setup.org
Last active July 25, 2018 06:56
PHP Apache Ignite ODBC integration on Ubuntu

Apache Ignite setup for php on ubuntu

Download and install

Binary is good enough if you do not want to build from source. You can find the installation instructions here.

Build and install the driver

@vharish
vharish / Xresources
Last active January 9, 2018 14:37
A simple Xresources configuration
Xft.autohint: 0
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
URxvt.font: xft:Fira Mono:pixelsize=15,style=Regular
URxvt.boldFont: xft:Fira Mono Medium:pixelsize=15,style=Medium
@vharish
vharish / gist:75ff65f6250d722e3d287089b60b57b0
Last active November 15, 2017 09:07
cVim config for chrome/opera
" Settings
set nohud
set nosmoothscroll
set noautofocus " The opposite of autofocus; this setting stops
" sites from focusing on an input box when they load
set typelinkhints
let searchlimit = 30
let scrollstep = 70
let barposition = "bottom"
@vharish
vharish / latency.txt
Created April 3, 2017 17:30 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@vharish
vharish / 0_reuse_code.js
Created March 31, 2016 07:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@vharish
vharish / keybase.md
Created March 16, 2016 12:36
Keybase autogenerated file for proving github

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@vharish
vharish / Android studio shortcuts on Linux
Last active August 29, 2015 14:06
Android studio shortcuts on Linux
Default Shortcuts
Alt + Enter - Display suggestions
F2 - Next Error/Warning
Shift + F2 - Previous Error/Warning
Ctrl + N - Open Class files
Ctrl + Shift + N - Open file
Ctrl + Shift + Alt + N - Open symbol