Skip to content

Instantly share code, notes, and snippets.

View Eising's full-sized avatar

Allan Eising Eising

View GitHub Profile
@Eising
Eising / gist:052698315ee75bd831c7777babdd8e30
Created March 10, 2020 15:27
Generate random bogus company names
def generate_company_name(self):
""" Try poorly to generate a unique company name """
colors = [
"Black",
"White",
"Red",
"Yellow",
"Magenta",
"Purple",
"Green",
@Eising
Eising / docker-compose.yml
Last active July 2, 2018 13:15
Icing docker-compose file
---
version: '2'
services:
icing-db_data:
image: tianon/true
volumes:
- /var/lib/postgresql/data
icing-db:
@Eising
Eising / findip.rb
Created February 27, 2012 13:13
Script to find IPs that belong in a list of subnets
#!/usr/bin/env ruby
require 'ipaddr'
def usage
puts "#{$0} supernets file"
puts "Checks if a file full of ip-addresses is part of a supernet \n\n"
puts "Supernets: A comma-separated list of CIDR-noted networks. NO SPACES!\n\n"
puts "Example:"
puts "#{$0} 10.0.0.0/8,172.16.0.0/12 badguys.txt"
Process.exit