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
1.23765E+18,183.864379,0.019200711,19.38322,17.88995,17.10537,16.66393,16.36955,752,301,4,269,3.23287E+17,GALAX
{"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.
{"data": [{"name": "Unnamed: 0", "x": [2, 4, 5, 6, 7, 11, 12, 13, 16, 18, 19, 20, 21, 22, 24, 26, 28, 29, 31, 34, 35, 36, 37, 39, 42, 43, 45, 48, 49, 52, 54, 57, 59, 61, 62, 64, 65, 66, 68, 70, 71, 72, 76, 77, 78, 79, 80, 82, 84, 86, 88, 89, 90, 91, 93, 95, 96, 99, 100, 101, 102, 104, 108, 111, 112, 113, 114, 119, 120, 123, 124, 128, 130, 133, 134, 135, 137, 138, 140, 143, 144, 146, 147, 148, 149, 151, 152, 153, 154, 155, 157, 160, 163, 168, 171, 176, 177, 180, 181, 184, 185, 192, 193, 195, 196, 198, 200, 202, 203, 207, 208, 209, 212, 217, 218, 219, 220, 223, 226, 231, 232, 235, 236, 241, 247, 248, 256, 257, 258, 260, 261, 263, 264, 265, 266, 268, 274, 275, 279, 282, 287, 290, 291, 293, 297, 298, 299, 300, 301, 302, 303, 304, 306, 307, 308, 310, 311, 312, 313, 314, 317, 321, 323, 326, 327, 328, 332, 333, 334, 335, 336, 341, 343, 347, 348, 352, 353, 354, 355, 356, 357, 359, 360, 361, 363, 368, 371, 372, 375, 377, 378, 379, 380, 385, 386, 387, 388, 392, 395, 397, 398, 402, 403, 406, 407, 408, 411, 412, 413, 415
This file has been truncated, but you can view the full file.
{"data": [{"name": "Unnamed: 0", "x": [2, 4, 5, 6, 7, 11, 12, 13, 16, 18, 19, 20, 21, 22, 24, 26, 28, 29, 31, 34, 35, 36, 37, 39, 42, 43, 45, 48, 49, 52, 54, 57, 59, 61, 62, 64, 65, 66, 68, 70, 71, 72, 76, 77, 78, 79, 80, 82, 84, 86, 88, 89, 90, 91, 93, 95, 96, 99, 100, 101, 102, 104, 108, 111, 112, 113, 114, 119, 120, 123, 124, 128, 130, 133, 134, 135, 137, 138, 140, 143, 144, 146, 147, 148, 149, 151, 152, 153, 154, 155, 157, 160, 163, 168, 171, 176, 177, 180, 181, 184, 185, 192, 193, 195, 196, 198, 200, 202, 203, 207, 208, 209, 212, 217, 218, 219, 220, 223, 226, 231, 232, 235, 236, 241, 247, 248, 256, 257, 258, 260, 261, 263, 264, 265, 266, 268, 274, 275, 279, 282, 287, 290, 291, 293, 297, 298, 299, 300, 301, 302, 303, 304, 306, 307, 308, 310, 311, 312, 313, 314, 317, 321, 323, 326, 327, 328, 332, 333, 334, 335, 336, 341, 343, 347, 348, 352, 353, 354, 355, 356, 357, 359, 360, 361, 363, 368, 371, 372, 375, 377, 378, 379, 380, 385, 386, 387, 388, 392, 395, 397, 398, 402, 403, 406, 407, 408, 411, 412, 413, 415
@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)