Skip to content

Instantly share code, notes, and snippets.

View sushant-hiray's full-sized avatar

Sushant Hiray sushant-hiray

View GitHub Profile

Steps to install Tensorflow Serving on Centos 7

Basic Prerequisites

sudo yum install git

sudo yum install gcc

sudo yum install gcc-c++
@sushant-hiray
sushant-hiray / updateTitle.js
Created February 14, 2015 05:10
Frustrated seeing the live score at the top of starsports.com ? Run this script in your Javascript Console and enjoy!
setInterval(function(){
document.title = "Enjoy the world cup"
}, 500);

##less command

Added the following support to less command

  • emoticon support
  • diagonal navigation support
from graphics import *
def get_y(x):
return x*x*x - 2*x +2
def main():
win = GraphWin("Graphing calulator", 300, 300)
win.yUp()
x_prev = -10
y_prev = get_y(x_prev)
@sushant-hiray
sushant-hiray / clearwater.md
Last active April 20, 2017 02:49
Installation Instructions for project clearwater

Prereqs

  • Atleast 7 VM's: 1 corresponding to each node and 1 for DNS Server.
  • Keep note of the IP's of each VM and assign them to a node.
  • A publicly accessible IP address of each of the above machines and a private IP address for each of them (these may be the same address depending on the machine environment). These will be referred to as <publicIP> and <privateIP> below.
  • The FQDN of the machine, which resolves to the machine's public IP address (if the machine has no FQDN, you should instead use the public IP). Referred to as <hostname> below.
  • A DNS root zone in which to install your repository and the ability to configure records within that zone. This root zone will be referred to as <zone> below. In setting of DNS, this is referred to as ims.hom

Setting up a DNS Server

sushant:~/code/csympy (fix-warning) $ cmake -DCMAKE_BUILD_TYPE=Debug .
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info

Keybase proof

I hereby claim:

  • I am sushant-hiray on github.
  • I am sushanthiray (https://keybase.io/sushanthiray) on keybase.
  • I have a public key ASCg47JU6ADKzDstvpCXcbNli2gzZQlgjrZ9ryd3b3kmOAo

To claim this, I am signing this object:

const RCP<const Basic> handle_minus(const RCP<const Basic> &arg, bool odd)
{
if(could_extract_minus(r)) {
if(odd)
return mul(minus_one, r);
else
return r;
}
}
@sushant-hiray
sushant-hiray / install.sh
Last active August 29, 2015 14:01
Script to prep up a newly installed ubuntu
sudo apt-get update && sudo apt-get upgrade;
sudo apt-get install ubuntu-restricted-extras;
sudo apt-get install terminator;
sudo apt-get install flashplugin-installer;
sudo apt-get install nautilus-dropbox;
sudo apt-get install vlc;
// linuxdcpp from software center
sudo apt-get install git;
sudo apt-get install vim;
@sushant-hiray
sushant-hiray / OpenFlow.md
Last active August 29, 2015 14:00
Summary of BTP papers

White Paper on Open Flow

As researchers, how can we run experiments in our campus networks?