Skip to content

Instantly share code, notes, and snippets.

View jai2033shankar's full-sized avatar

Vish jai2033shankar

View GitHub Profile
@jai2033shankar
jai2033shankar / SimpleHttpClient.cs
Created September 3, 2018 02:19 — forked from bryanbarnard/SimpleHttpClient.cs
Simple C# .NET 4.5 HTTPClient Request Using Basic Auth and Proxy
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net;
namespace HTTP_Test
@jai2033shankar
jai2033shankar / gist:acacf689c8f28582e68f043d3da6dcd6
Created July 12, 2018 11:10 — forked from econchick/gist:4666413
Python implementation of Dijkstra's Algorithm
class Graph:
def __init__(self):
self.nodes = set()
self.edges = defaultdict(list)
self.distances = {}
def add_node(self, value):
self.nodes.add(value)
def add_edge(self, from_node, to_node, distance):
@jai2033shankar
jai2033shankar / pub-sub.js
Created November 22, 2017 11:10 — forked from reu/pub-sub.js
node.js redis pub-sub example
var redis = require("redis")
, subscriber = redis.createClient()
, publisher = redis.createClient();
subscriber.on("message", function(channel, message) {
console.log("Message '" + message + "' on channel '" + channel + "' arrived!")
});
subscriber.subscribe("test");
@jai2033shankar
jai2033shankar / redis.js
Created November 22, 2017 11:10 — forked from yssk22/redis.js
Redis sample program (retwis) ported to node.js
/**
* retwis-js.js
*
* Description:
*
* redis tutorial program impelmented by node.js
*
* Usage:
*
* node redis.js
@jai2033shankar
jai2033shankar / slack_history.py
Created July 11, 2017 14:36 — forked from Chandler/slack_history.py
Download Slack Channel/PrivateChannel/DirectMessage History
# MIT License
# Copyright (c) 2016 Chandler Abraham
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@jai2033shankar
jai2033shankar / testlink-cli.py
Created June 3, 2017 16:05 — forked from dnozay/testlink-cli.py
small testlink CLI using TestLink-API-Python-client
<html>
<head>
<title>API Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
var accessToken = "<your agent's client access token>";
var baseUrl = "https://api.api.ai/v1/";
@jai2033shankar
jai2033shankar / gist:d3ca052a1eb3c3736d1a2f24d797e4b5
Created April 15, 2017 09:14 — forked from bot11/gist:b5dc7c67fd9348d844b2
Install openstack controller using chef cookbooks
** Proxy configuration at the end of document. Make sure you have it in case if you internet is routed from proxy
Installation of chef server:
---------------------------
1) Install pre-requisites:
$ apt-get update
$ apt-get install build-essential
$ apt-get install ruby1.9.3
$ apt-get install ruby-dev
@jai2033shankar
jai2033shankar / gist:e898bccd8330b5dd96a3b2ca52410bc6
Created April 15, 2017 09:14 — forked from bot11/gist:b5dc7c67fd9348d844b2
Install openstack controller using chef cookbooks
** Proxy configuration at the end of document. Make sure you have it in case if you internet is routed from proxy
Installation of chef server:
---------------------------
1) Install pre-requisites:
$ apt-get update
$ apt-get install build-essential
$ apt-get install ruby1.9.3
$ apt-get install ruby-dev
@jai2033shankar
jai2033shankar / bin_op.R
Created May 24, 2016 16:16 — forked from seankross/bin_op.R
Swirl R Programming Script Answers
"%p%" <- function(left, right){
paste(left, right)
}