Skip to content

Instantly share code, notes, and snippets.

View andreimerlescu's full-sized avatar
🤩
www.i18n.software

Andrei Merlescu andreimerlescu

🤩
www.i18n.software
View GitHub Profile
REGEX_1 = /(\d{1,2})[st|nd|rd|th]?{2}\s{1}(January|Jan|February|Feb|March|Mar|April|Apr|May|June|Jun|July|Jul|August|Aug|September|Sep|October|Oct|November|Nov|December|Dec),?\s(\d{2,4})/
REGEX_2 = /(January|Jan|February|Feb|March|Mar|April|Apr|May|June|Jun|July|Jul|August|Aug|September|Sep|October|Oct|November|Nov|December|Dec)\s{1}(0\d{1}|\d{1,2})[st|nd|rd|th]{2}?(,?)\s(\d{2,4})/
REGEX_3 = /(0\d{1}|\d{1}|1\d{1})\/(0\d{1}|\d{1}|1\d{1})\/(\d{2,4})/
MONTH_STR_TO_NUM={
"JANUARY": 1,
"January": 1,
"Jan": 1,
"FEBRUARY": 2,
"February": 2,
"Feb": 2,
m,
`$b
.ss, $$: .,d$
`$$P,d$P' .,md$P"'
,$$$$$b/md$$$P^'
.d$$$$$$/$$$P'
$$^' `"/$$$' ____ _ _ _ _
$: ,$$: / ___|(_) __| | ___| | _(_) __ _
`b :$$ \___ \| |/ _` |/ _ \ |/ / |/ _` |
m,
`$b
.ss, $$: .,d$
`$$P,d$P' .,md$P"'
,$$$$$b/md$$$P^'
.d$$$$$$/$$$P'
$$^' `"/$$$' ____ _ _ _ _
$: ,$$: / ___|(_) __| | ___| | _(_) __ _
`b :$$ \___ \| |/ _` |/ _ \ |/ / |/ _` |
m,
`$b
.ss, $$: .,d$
`$$P,d$P' .,md$P"'
,$$$$$b/md$$$P^'
.d$$$$$$/$$$P'
$$^' `"/$$$' ____ _ _ _ _
$: ,$$: / ___|(_) __| | ___| | _(_) __ _
`b :$$ \___ \| |/ _` |/ _ \ |/ / |/ _` |
# ⇒ ruby string_find_test.rb
# Started 2020-01-02 15:20:04 -0500
# Ended 2020-01-02 15:20:05 -0500
# Speed 1.7854981422424316s
#
#
#
# Started 2020-01-02 15:20:05 -0500
# Ended 2020-01-02 15:20:09 -0500
# Speed 3.125840902328491s

To run a Docker Registry via Docker-Compose with HTPASSWD Auth

1. Recommended Minimum Purchases

The total cost of your setup is going to be $204.27/year ($17.03/month or 2 cups of Coffee at Starbucks) What you'll get is a private docker registry (v2) with 100GB of dedicated storage for your containers.

  1. Create a $5 VM by signing up for DigitalOcean and deploying a Marketplace Docker container. Make sure you add Block Storage! $100GB for $10/month is not expensive and you will thank me later. I also recommend you enable backups for $1.00/mmonth.
  2. Register an awesome domain name at Epik (.xyz domains are $0.89 for the first year [2019] and then just $8.50/year thereafter)
  3. Purchase a $3.77/year SSL certificate from ssls.com