Skip to content

Instantly share code, notes, and snippets.

@Harrisoon
Harrisoon / IP
Created November 21, 2018 10:31
Returns next available IP.
#!usr/bin/env python2
import ipaddress
def consecutive_IP(CIDR = u'0.0.0.0', ip=u'0.0.0.0'):
'''
Takes an IP as the inupt and returns the next available IP address
d
@param CIDR: CIDR notation
@param ip: ip address
@WebReflection
WebReflection / certificate.sh
Last active July 1, 2020 18:08
A basic Self Signed SSL Certificate utility
#!/usr/bin/env bash
# A basic Self Signed SSL Certificate utility
# by Andrea Giammarchi @WebReflection
# https://www.webreflection.co.uk/blog/2015/08/08/bringing-ssl-to-your-private-network
# # to make it executable and use it
# $ chmod +x certificate
# $ ./certificate # to read the how-to