Skip to content

Instantly share code, notes, and snippets.

View SpareSimian's full-sized avatar

SpareSimian

  • San Pablo, CA, US
View GitHub Profile
@SpareSimian
SpareSimian / aws-ip-ranges-to-zones.py
Created June 6, 2019 17:32
Dump AWS netblocks into zone files for use as ipsets
#!/usr/bin/env python
# download the current Amazon AWS list of netblocks and dump it into
# two files, one each for IPv4 and IPv6. The result can be imported
# into firewalld ipsets using --add-entries-from-file
import requests
ipv4_filename = 'AmazonAWS_ipv4.zone'
ipv6_filename = 'AmazonAWS_ipv6.zone'
@SpareSimian
SpareSimian / BuildBoost.cmd
Created April 13, 2019 05:16
Build Boost binary libraries with several Visual Studio versions
@rem build all variants needed of Boost library
@rem debug/release, static/dynamic CRT linkage, 32/64 bit
@rem vc10/vc12/vc14/vc141/vc142
@rem run from %boost_root% directory
pushd %boost_root%
call .\bootstrap.bat --without-python
@rem Visual Studio 2019