Skip to content

Instantly share code, notes, and snippets.

import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
from multiprocessing import Process
import requests
import sys
import datetime
def get(url, timeout):
@m-motawea
m-motawea / table.sh
Last active January 10, 2022 23:22
make table in bash
#!/bin/bash
# the script to make tables like this
# +----------+--------+--------------------+
# |col1 |col2 |col3 |
# +----------+--------+--------------------+
# |val1 |val3 |val4 |
# +----------+--------+--------------------+
# |valqeefnkl|val3wekj|val4 |
# |1 |bkjwvsaj| |
from Jumpscale import j
builder_method = j.baseclasses.builder_method
class BuilderKeepalived(j.baseclasses.builder):
__jslocation__ = "j.builders.network.keepalived"
def _init(self, **kwargs):
self.BUILDDIR = self._replace("{DIR_VAR}/build/keepalived")