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/python3 | |
# A simple HTTP proxy which does caching of requests. | |
# "Inspired" by: https://gist.github.com/justinmeiners/24dcf5904490b621220bed643651f681 | |
# but updated with | |
#- a clean exit on signal allowing it to be easily popped by another script using subprocess | |
#- tcp socket reuse to avoid the tcp socket already in use if popped often | |
#- a cache directory to avoid a lot of files just being in the middle | |
# | |
# use it by getting 'http://localhost:8000/www.kernel.org' to get http://www.kernel.org |
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 'json' | |
ifaces = [] | |
whitelist = [ "eth", "wlan", "en" ] | |
names = `ip link sh`.scan(/^\d+: (.*):/).flatten.select do |name| | |
whitelist.any? {|pattern| name.start_with?(pattern) } | |
end |
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
# Please see the following blog post for more information: | |
# | |
# https://www.hashicorp.com/blog/using-hashicorp-vault-with-chef.html | |
# | |
resource_name :vault_secret | |
property :path, String, name_property: true | |
property :destination, String |