Skip to content

Instantly share code, notes, and snippets.

@andyjones
andyjones / explain.pl
Last active December 23, 2015 19:19 — forked from pjlsergeant/explain.pl
Given a string, print out the codepoints that it currently compromises of
# 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() ) ) {
upstream docker_registry {
server 127.0.0.1:15000;
}
server {
listen 443;
root /dev/null;
index index.html index.htm;