Skip to content

Instantly share code, notes, and snippets.

View phozzy's full-sized avatar
🌐
happiness for everybody, free of charge, and may no one be left behind

Artur Faizullin phozzy

🌐
happiness for everybody, free of charge, and may no one be left behind
View GitHub Profile
@phozzy
phozzy / ipa_net.py
Created October 14, 2019 18:24
A python script for creating network namespace to use with FreeIPA container.
#!/usr/bin/env python3
from contextlib import suppress
from pyroute2 import NetNS
from pyroute2 import IPRoute
ph_interface = "eth0"
container_name_space = "ipans"
container_link = "ipalink"
floating_ip = "your.server.floating.ip"
hetzner_gw = "172.31.1.1"
ipr = IPRoute()
@phozzy
phozzy / download_and_notify.py
Created February 2, 2018 15:40
downloads artifact from maven repository and notifies via webhook
#!/usr/bin/env python3
import xml.etree.ElementTree as ET
import urllib.request
import argparse
import os
# argparse
parser = argparse.ArgumentParser()
parser.add_argument("-g", "--group", type = str, help = "artifact's group id", required = True)