Skip to content

Instantly share code, notes, and snippets.

View sourcepirate's full-sized avatar
🏠
Work and pray

Sathya Narrayanan sourcepirate

🏠
Work and pray
View GitHub Profile
@sourcepirate
sourcepirate / elastic.yml
Created July 4, 2017 01:46
cluster using elasticsearch
elasticsearch_master:
image: elasticsearch:latest
command: "elasticsearch -Des.cluster.name=workagram -Des.node.master=true -Des.node.data=false"
environment:
- ES_JAVA_OPTS="-Xms512m -Xmx512m"
ports:
- "9200:9200"
- "9300:9300"
elasticsearch1:
@sourcepirate
sourcepirate / pipes.py
Created October 6, 2017 09:22 — forked from zacharyvoase/pipes.py
pipes.py - Command-piping syntax for generators/coroutines in Python.
# -*- coding: utf-8 -*-
# pipes.py - Command-piping syntax for generators/coroutines in Python.
"""
pipes.py - Command-piping syntax for generators/coroutines in Python.
Example:
>>> from pipes import *
>>> chain1 = counter(5) | adder(2)
import re
strings = """every day at 11:30
every 2nd week tuesday at 11:30
every 5 mins
"""
grammer = {
"G": "every <DAY_CTX> | <WEEK_CTX> | <MIN_CTX>",
"WEEK_CTX": "<WEEK> week <DAY_CTX>",

service consul-template stop vi /etc/td-agent/td-agent.conf service td-agent restart

@sourcepirate
sourcepirate / SDLC.md
Last active January 18, 2018 00:42
Software Development life cycle

Phase-I Feasibility Study

  • Input - Customer Requirement,
  • Budget and Timeframe / Output - Cost Benefit Analysis Report

Phase-II Requirement Analysis

  • Input - Customer requirements given in different formats (BRD, FRD)/
  • Output - SRS

Phase-III System Analysis and Designing

  • Input - End User Information / Output - ERD, DFD, Design Documents
@sourcepirate
sourcepirate / SPD.md
Created January 17, 2018 01:15
Software Process design

Charecerstics of good process

  • reliablity
  • good engineering practice
  • customizable
  • measure improvement
use std::default::Default;
use std::collections::HashMap;
use github_rs::StatusCode;
use github_rs::client::{Executor, Github};
use github_rs::gists;
use serde_json::Value;
use chrono::prelude::*;
use reqwest;
use macros;
* https://theswissbay.ch/pdf/Gentoomen%20Library/Artificial%20Intelligence/
* http://www.dblab.ntua.gr/~gtsat/collection/Machine%20Learning/
* http://tangkk.net/me/book/EECS/
https://github.com/petermbenjamin/awesome-podcasts
https://github.com/guipdutra/awesome-geek-podcasts
https://github.com/rShetty/awesome-podcasts
https://github.com/wayneashleyberry/awesome-podcasts
https://github.com/petermbenjamin/awesome-podcasts

const data = [
  ["a", "b"],
  ["b", "c"],
  ["a", "d"],
  ["d", "e"],
  ["d", "c"]
];