How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)
Virtual hosts
Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
#### Postgres | |
# Run Postgres 10 | |
sudo docker run --rm --name postgres10 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRE_PORT=5433 -p 5433:5432 postgres:10 | |
# Connect to Postgres 10 | |
psql -p 5433 -U postgres -h 172.17.0.1 |
Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
node { | |
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
echo 'No quotes, pipeline command in single quotes' | |
sh 'echo $BUILD_NUMBER' // 1 | |
echo 'Double quotes are silently dropped' | |
sh 'echo "$BUILD_NUMBER"' // 1 | |
echo 'Even escaped with a single backslash they are dropped' | |
sh 'echo \"$BUILD_NUMBER\"' // 1 | |
echo 'Using two backslashes, the quotes are preserved' | |
sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
# Set nginx base image | |
FROM nginx | |
# Copy custom configuration file from the current directory | |
COPY nginx.conf /etc/nginx/nginx.conf |
class Dog | |
attr_writer :name | |
def initialize(name) | |
@name = name | |
end | |
def bark | |
puts "patrick" | |
end |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: redis-sentinel | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Starts redis sentinel | |
# Description: Starts redis sentinel using start-stop-daemon | |
### END INIT INFO |
#!/bin/bash | |
# sidekiq Init script for Sidekiq | |
# chkconfig: 345 100 75 | |
# | |
# Description: Starts and Stops Sidekiq message processor for Stratus application. | |
# | |
# User-specified exit parameters used in this script: | |
# | |
# Exit Code 5 - Incorrect User ID | |
# Exit Code 6 - Directory not found |
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: redis sentinel | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Starts redis sentinel | |
# Description: Starts redis sentinel using start-stop-daemon | |
### END INIT INFO |
minteye is a captcha system where you try to find the original image out of distorted ones. They also have a feature list on their website but they forgot the view from a computer. I fixed it:
There are two ways to crack this captcha easily. I've used the audio challange. There are three different kind of audio messages.