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
upstream docker_registry { | |
server 127.0.0.1:15000; | |
} | |
server { | |
listen 443; | |
root /dev/null; | |
index index.html index.htm; |
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
# Given a string, print out the codepoints that it currently compromises of. If | |
# you pass it a bytestring, you will get the bytes. If you pass it a character | |
# string, you will get the characters. This can be helpful when you're not sure | |
# if your terminal is playing around with the output. | |
sub explain { | |
# We will build up the output in $explain | |
my $explain; | |
# Split the first argument in to characters | |
for my $char ( split(//, shift() ) ) { |