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
docker service rm rdb-primary rdb-secondary rdb-proxy
docker network rm rdb-net
sleep 5
docker network create --driver overlay rdb-net
sleep 2
docker service create \
--name rdb-primary \
--network rdb-net \
https://www.insidersvoice.com
% dig kalkyai.com +trace
; <<>> DiG 9.10.6 <<>> kalkyai.com +trace
;; global options: +cmd
. 517482 IN NS a.root-servers.net.
. 517482 IN NS b.root-servers.net.
. 517482 IN NS c.root-servers.net.
. 517482 IN NS d.root-servers.net.
. 517482 IN NS e.root-servers.net.
. 517482 IN NS f.root-servers.net.
We can't make this file beautiful and searchable because it's too large.
objid,ra,dec,u,g,r,i,z,run,rerun,camcol,field,specobjid,class,redshift,plate,mjd,fiberid
1.23765E+18,183.5313257,0.08969303,19.47406,17.0424,15.94699,15.50342,15.22531,752,301,4,267,3.72236E+18,STAR,-8.96E-06,3306,54922,491
1.23765E+18,183.5983705,0.135285032,18.6628,17.21449,16.67637,16.48922,16.3915,752,301,4,267,3.63814E+17,STAR,-5.49E-05,323,51615,541
1.23765E+18,183.6802074,0.126185092,19.38298,18.19169,17.47428,17.08732,16.80125,752,301,4,268,3.23274E+17,GALAXY,0.1231112,287,52023,513
1.23765E+18,183.8705294,0.049910685,17.76536,16.60272,16.16116,15.98233,15.90438,752,301,4,269,3.72237E+18,STAR,-0.000110616,3306,54922,510
1.23765E+18,183.8832883,0.102556752,17.55025,16.26342,16.43869,16.55492,16.61326,752,301,4,269,3.72237E+18,STAR,0.000590357,3306,54922,512
1.23765E+18,183.8471736,0.173694164,19.43133,18.46779,18.16451,18.01475,18.04155,752,301,4,269,3.64955E+17,STAR,0.000314603,324,51666,594
{"data": [{"coloraxis": "coloraxis", "hoverlabel": {"namelength": 0}, "hovertemplate": "count=%{z}", "name": "", "xaxis": "x", "xbingroup": "x", "yaxis": "y", "ybingroup": "y", "type": "histogram2d"}], "layout": {"xaxis": {"anchor": "y", "domain": [0.0, 0.98]}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0]}, "template": {"data": {"barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "barpolar"}], "bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "carpet": [{"aaxis": {"endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f"}, "baxis": {"endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f"}, "type": "carpet"}], "choropleth": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "choropleth"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks"
This file has been truncated, but you can view the full file.
This file has been truncated, but you can view the full file.
@sourcepirate
sourcepirate / rsa.py
Created March 18, 2019 03:05
A simple RSA implementation in Python
'''
620031587
Net-Centric Computing Assignment
Part A - RSA Encryption
'''
import random
'''
@sourcepirate
sourcepirate / MerkleTree.py
Created March 3, 2019 14:50
Simple Merkle tree implementation.
from hashlib import md5
def groupn(lst, n):
return [lst[i:i+n] for i in range(0, len(lst), n)]
class Node(object):
def __init__(self, _hash):
self._hash = _hash
self.childrens = []
(setq byte-compile-warnings '(not free-vars ))
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(require 'package)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)