A quick and dirty SSL MiTM using stunnel
- Generate a SSL certificate .. or use Let's Encrypt (for the green lock)
openssl req -batch -new -x509 -days 365 -nodes -out mitm.pem -keyout mitm.pem- Run stunnel
| #!/bin/bash | |
| U=${SUDO_USER:=${USER}} | |
| if [[ -x `which realpath` ]]; then | |
| T=$(realpath ${BASH_SOURCE[0]:=${0}}) | |
| else | |
| T=${BASH_SOURCE[0]:=${0}} | |
| fi | |
| D=$(dirname ${T}) | |
| #apt-get install libfcgi-dev libfcgi0ldbl libjpeg62-turbo-dbg libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev libxml2-dev libbz2-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev libfreetype6-dev libkrb5-dev libpq-dev libxml2-dev libtidy-dev libmemcached-dev imagemagick-dev msgpack-dev |
A quick and dirty SSL MiTM using stunnel
openssl req -batch -new -x509 -days 365 -nodes -out mitm.pem -keyout mitm.pem| #!/usr/bin/env bash | |
| # exit 0 | |
| set -ex | |
| echo '##########################################################################' | |
| echo '##### About to run install-gnome-gui.sh script ##################' | |
| echo '##########################################################################' | |
| # https://codingbee.net/tutorials/vagrant/vagrant-enabling-a-centos-vms-gui-mode | |
| yum groupinstall -y 'gnome desktop' |
| <?php | |
| namespace modules; | |
| use Craft; | |
| /** | |
| * MAMP Helper class. | |
| * File: /modules/MampHelper.php | |
| * | |
| * MySQL database backups triggered from the Craft 3 Control Panel fail because, |
| <?php | |
| /** | |
| * Extract key and value from all "define" constants in a wp-config.php file using built-in php tokenizer functions. | |
| * Does not "include" the file so it won't pollute the current scope or cause side effects. | |
| * | |
| * NOTE: Works with constants defined as string, bool or number | |
| * Method can extract values from statements like: | |
| * define( 'DB_NAME', 'wordpress' ); | |
| * define('WP_DEBUG', true); | |
| * define('SOMEINT', 1234567); |