This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// in app_dev.php | |
if (!function_exists('dd')) { | |
function dd(...$vars) | |
{ | |
foreach ($vars as $v) { | |
VarDumper::dump($v); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
: ' Script that enables TLS for Docker service in Ubuntu 16.x | |
This script is intended to be run as root | |
It; | |
- Generates the keys | |
- Creates the daemon.json Docker config file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Becoming a Certificate Authority | |
openssl genrsa -des3 -out ca.key 2048 | |
openssl req -x509 -new -nodes -key ca.key -sha256 -days 1825 -out ca.pem | |
# Install the ca.pem in the Keychain app and set "Always Trust" in the trust section | |
# 2. Creating "CA-Signed" Certificates for our development websites | |
openssl genrsa -out localhost.key 2048 | |
openssl req -new -key localhost.key -out localhost.csr | |
# Edit localhost.ext for SAN configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'net/http' | |
require 'net/https' | |
require 'base64' | |
require 'json' | |
require 'encrypted_strings' | |
# This is an example token swap service written | |
# as a Ruby/Sinatra service. This is required by | |
# the iOS SDK to authenticate a user. |