This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: '2' | |
services: | |
icing-db_data: | |
image: tianon/true | |
volumes: | |
- /var/lib/postgresql/data | |
icing-db: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def generate_company_name(self): | |
""" Try poorly to generate a unique company name """ | |
colors = [ | |
"Black", | |
"White", | |
"Red", | |
"Yellow", | |
"Magenta", | |
"Purple", | |
"Green", |