save_and_open_page
have_button(locator)
image: ruby:2.4 | |
stages: | |
- deploy | |
deploy_staging: | |
environment: staging | |
stage: deploy | |
script: | |
- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) | |
- eval $(ssh-agent -s) |
#!/bin/bash | |
echo "Generating an SSL private key to sign your certificate..." | |
openssl genrsa -des3 -out myssl.key 1024 | |
echo "Generating a Certificate Signing Request..." | |
openssl req -new -key myssl.key -out myssl.csr | |
echo "Removing passphrase from key (for nginx)..." | |
cp myssl.key myssl.key.org | |
openssl rsa -in myssl.key.org -out myssl.key |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
# VI bindings in iex: | |
brew install rlwrap # on OSX | |
echo "alias iex='rlwrap -a foo iex'" >> ~/.bash_profile | |
echo "set editing-mode vi" >> ~/.inputrc | |
source ~/.bash_profile | |
# To run iex WITHOUT rlwrap | |
\iex |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |