Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Sri Harsha sriharrsha

🎯
Focusing
  • FortyAU LLC
  • Nashville
View GitHub Profile
View envirInstaller.sh
#Environment Configuration sh file:
#1 Mongodb
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
apt-get update
apt-get install -y mongodb-org
sudo service mongod start
View Dockerfile
FROM library/ubuntu:14.04
RUN apt-get update
#RUN apt-get install -y wget
#RUN wget https://bootstrap.pypa.io/get-pip.py
#RUN python get-pip.py
RUN apt-get install -y python-dev libxml2-dev libxslt-dev
View INIT.SH
RUN python /opt/C3STEM/DB/c2sumo_schema_nashville.py
RUN python /opt/C3STEM/DB/users.py
RUN echo 'import pymongo\n\
import docker\n\
import os\n\
from pymongo import MongoClient\n\
from bson.objectid import ObjectId\n\
\n\
client = docker.from_env()\n\
@sriharrsha
sriharrsha / TrafficSim.html
Created Dec 10, 2017
Open Layer tile with googleMaps implementation
View TrafficSim.html
<!DOCTYPE html>
<html>
<head>
<title>C3STEM - INSTITUTE FOR SOFTWARE INTEGRATED SYSTEMS</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="Styles/Main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://code.jquery.com/ui/1.10.2/themes/cupertino/jquery-ui.css" />
<link rel="stylesheet" type="text/css" media="screen" href="Tools/jqGrid-4.6.0/css/ui.jqgrid.css" />
View TrafficSim.html
<!DOCTYPE html>
<html>
<head>
<title>C3STEM - INSTITUTE FOR SOFTWARE INTEGRATED SYSTEMS</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="Styles/Main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://code.jquery.com/ui/1.10.2/themes/cupertino/jquery-ui.css" />
<link rel="stylesheet" type="text/css" media="screen" href="Tools/jqGrid-4.6.0/css/ui.jqgrid.css" />
View BENCHMARKS TILE38
====== PING ======
100000 requests completed in 0.38 seconds
50 parallel clients
14 bytes payload
keep alive: 1
99.41% <= 0 milliseconds
99.74% <= 1 milliseconds
99.91% <= 2 milliseconds
99.94% <= 3 milliseconds
View server-compose
version: "3.4"
services:
mongodb:
image: mongo/mongo:3.7.1-jessie
ports:
- "27017"
networks:
- dbnet
volumes:
View gist:34db12e1eec085f86631886811f12cea
const commands = [
{title:'Clean Test 1',endPoint: 'https://price.guru', audio: clean_test1},
{title:'Clean Test 2',endPoint: 'https://price.guru', audio: clean_test2},
{title:'Get Test 1',endPoint: 'https://price.guru', audio: get_test1},
{title:'Get Test 2',endPoint: 'https://price.guru', audio: get_test2},
{title:'Get Test 3',endPoint: 'https://price.guru', audio: get_test3},
{title:'Meal Test 1',endPoint: 'https://price.guru', audio: meal_test1},
{title:'Meal Test 2',endPoint: 'https://price.guru', audio: meal_test2},
{title:'Meal Test 3',endPoint: 'https://price.guru', audio: meal_test3},
{title:'Order Test 1',endPoint: 'https://price.guru', audio: order_test1},
View browser-polyfill.min.js
(function(a,b){if("function"==typeof define&&define.amd)define("webextension-polyfill",["module"],b);else if("undefined"!=typeof exports)b(module);else{var c={exports:{}};b(c),a.browser=c.exports}})(this,function(a){"use strict";if("undefined"==typeof browser){a.exports=(()=>{const c={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},export:{minArgs:0,maxArgs:0},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},getSubTree:{minArgs:1,maxArgs:1},import:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},setIcon:{minArgs:1,maxArgs:1}},commands:{getAll:{minArgs