Skip to content

Instantly share code, notes, and snippets.

View mosheavni's full-sized avatar
:electron:

Moshe Avni mosheavni

:electron:
View GitHub Profile
attrNameSnakeCase: true
lowercaseOutputName: true
lowercaseOutputLabelNames: true
rules:
- pattern: ".*"
@mosheavni
mosheavni / subnet_picker.py
Created November 21, 2020 14:59
Subnet picker - Generate non-overlapping list of CIDRs based on base CIDR and existing subnets
#!/usr/bin/env python3
import argparse
import ipaddress
import re
import sys
def main(results):
# Convert existing_subnet to ip_network object
existing_subnets = []
/* Moshe's first library */
(function () {
function Modal(title, message) {
const that = this;
that.title = title;
that.message = message;
function init() {
const body = document.querySelector('body');
// Main Div
2017/04/25 12:14:21 [INFO] raft: Node at 10.2.1.155:8300 [Candidate] entering Candidate state in term 7
2017/04/25 12:14:24 [ERR] raft: Failed to make RequestVote RPC to {Voter 10.2.1.178:8300 10.2.1.178:8300}: dial tcp 10.2.1.178:8300: getsockopt: no route to host
2017/04/25 12:14:27 [WARN] raft: Election timeout reached, restarting election
2017/04/25 12:14:27 [INFO] raft: Node at 10.2.1.155:8300 [Candidate] entering Candidate state in term 8
2017/04/25 12:14:27 [ERR] raft: Failed to make RequestVote RPC to {Voter 10.2.1.178:8300 10.2.1.178:8300}: dial tcp 10.2.1.178:8300: getsockopt: no route to host
2017/04/25 12:14:33 [WARN] raft: Election timeout reached, restarting election
2017/04/25 12:14:33 [INFO] raft: Node at 10.2.1.155:8300 [Candidate] entering Candidate state in term 9
2017/04/25 12:14:36 [ERR] raft: Failed to make RequestVote RPC to {Voter 10.2.1.178:8300 10.2.1.178:8300}: dial tcp 10.2.1.178:8300: getsockopt: no route to host
2017/04/25 12:14:41 [WARN] raft: Election timeout reached, restartin