Skip to content

Instantly share code, notes, and snippets.

View helloravi's full-sized avatar
😃
Zero Knowledge Proofs

Ravikanth Andhavarapu helloravi

😃
Zero Knowledge Proofs
View GitHub Profile
@helloravi
helloravi / .tmux.conf
Created March 19, 2016 01:09
Tmux Configuration
#Changes prefix to Ctrl-a from Ctrl-b
set -g prefix C-a
unbind C-b
#Sets delay to 1sec? when sending commands
set -sg escape-time 1
#Sets first window number as 1 instead of 0
set -g base-index 1
@helloravi
helloravi / vimrc
Last active January 23, 2017 03:34
Vimrc as on Jan, 23, 2017
" Note: Skip initialization for vim-tiny or vim-small.
let mapleader=","
if 0 | endif
if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
" Required:
unning `rake db:migrate` attached to terminal... up, run.8290
ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateOrders (20160127053438)
(0.7ms) BEGIN
== 20160127053438 CreateOrders: migrating =====================================
-- create_table(:orders)
(12.5ms) CREATE TABLE "orders" ("id" serial primary key, "musician_id" integer, "total" decimal(7,2) DEFAULT 0.0, "payment_status" boolean DEFAULT 'f', "shazam" boolean DEFAULT 'f', "youtube" boolean DEFAULT 'f', "store_maximizer" boolean DEFAULT 'f', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
(3.3ms) CREATE INDEX "index_orders_on_musician_id" ON "orders" ("musician_id")
(10.6ms) ALTER TABLE "orders" ADD CONSTRAINT "fk_rails_ad134589be"
FOREIGN KEY ("musician_id")
@helloravi
helloravi / swapesc
Created December 2, 2015 05:58 — forked from berkes/swapesc
#!/bin/bash
current=$(dconf read /org/gnome/desktop/input-sources/xkb-options)
swapped="['caps:swapescape']"
capslock="['caps:capslock']"
echo "Current status: $current"
if [ "$current" == "$swapped" ]
then
echo "Making caps and escape WORK NORMALLY"
@helloravi
helloravi / Reactjs
Created June 6, 2015 13:36
Learning resources for ReactJS
1. Introduction to React from facebook developers: first 30 minutes: https://www.youtube.com/watch?v=XxVg_s8xAms
2. React.js Conf 2015 Keynote - Introducing React Native - https://www.youtube.com/watch?v=KVZ-P-ZI6W4
3. Learn React, Flux, and Flow: Part I(Do assignments) - https://www.youtube.com/watch?v=Pd6Ub7Ju2RM