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 / 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
@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"
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 / 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:
@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 / rorab.yml
Created March 19, 2016 01:25
tmuxinator-configuration
# ~/.tmuxinator/ror.yml
name: rorab
root: ~/astrapaid/alpha/habm/
# Optional tmux socket
# socket_name: foo
# Runs before everything. Use it to start daemons etc.
# pre: sudo /etc/rc.d/mysqld start
@helloravi
helloravi / WritingSmartContracts
Last active December 18, 2017 13:18
Deploying contact in ethereum
https://medium.com/etherereum-salon/eth-testing-472c2f73b4c3
https://blog.zeppelin.solutions/how-to-create-token-and-initial-coin-offering-contracts-using-truffle-openzeppelin-1b7a5dae99b6
@helloravi
helloravi / OpenIdConnect
Last active December 18, 2017 13:18
OpenId Connect gist
How do we create a multilogin set up including
http://auth0.com/
Facebook Account Kit
keycloak
Amazon cognito
@helloravi
helloravi / EthereumCommands
Last active February 6, 2018 11:30
Ethereum commands
geth --syncmode "light"
https://hackernoon.com/heres-how-i-built-a-private-blockchain-network-and-you-can-too-62ca7db556c0
(The private chain tutorial)
Understanding how keystore works: https://medium.com/@julien.m./what-is-an-ethereum-keystore-file-86c8c5917b97
Gas Price: https://myetherwallet.github.io/knowledge-base/gas/what-is-gas-ethereum.html
Access Storage of Contracts: https://medium.com/aigang-network/how-to-read-ethereum-contract-storage-44252c8af925
Invalid Address: http://www.bullraider.com/ethereum/tutorials/342-understanding-invalid-address-error-in-dapps-or-geth-console
Events and Logs: https://media.consensys.net/technical-introduction-to-events-and-logs-in-ethereum-a074d65dd61e
@helloravi
helloravi / eos_install
Created March 21, 2018 09:22
EOS Installation
Linking problems
https://github.com/EOSIO/eos/issues/43