Quick reference for SSL certificate workflow handling for commonly used commercial SSL products
- Generate a new private key
CCA2 | Name | CCA3 | Nationality | |
---|---|---|---|---|
AD | Andorra | AND | Andorran | |
AE | United Arab Emirates | ARE | Emirati | |
AF | Afghanistan | AFG | Afghan | |
AG | Antigua and Barbuda | ATG | Antiguan, Barbudan | |
AI | Anguilla | AIA | Anguillian | |
AL | Albania | ALB | Albanian | |
AM | Armenia | ARM | Armenian | |
AN | Netherlands Antilles | ANT | Dutch | |
AO | Angola | AGO | Angolan |
<?php | |
/* | |
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
Author: _ck_ (with contributions by GK, stasilok) | |
Version: 0.1.7 | |
Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
* revision history | |
0.1.7 2015-09-01 regex fix for PHP7 phpinfo | |
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter |
// Source: http://www.highonphp.com/fixing-soap-exception-no-xml | |
class SoapClientNG extends \SoapClient{ | |
public function __doRequest($req, $location, $action, $version = SOAP_1_1){ | |
$xml = explode("\r\n", parent::__doRequest($req, $location, $action, $version)); | |
$response = preg_replace( '/^(\x00\x00\xFE\xFF|\xFF\xFE\x00\x00|\xFE\xFF|\xFF\xFE|\xEF\xBB\xBF)/', "", $xml[0] ); |
# Ask for the user password | |
# Script only works if sudo caches the password for a few minutes | |
sudo true | |
# Install kernel extra's to enable docker aufs support | |
# sudo apt-get -y install linux-image-extra-$(uname -r) | |
# Add Docker PPA and install latest version | |
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
"""Base class for implementing Lambda handlers as classes. | |
Used across multiple Lambda functions (included in each zip file). | |
Add additional features here common to all your Lambdas, like logging.""" | |
class LambdaBase(object): | |
@classmethod | |
def get_handler(cls, *args, **kwargs): | |
def handler(event, context): | |
return cls(*args, **kwargs).handle(event, context) | |
return handler |
#!/bin/bash | |
# | |
# Ansible role test shim. | |
# | |
# Usage: [OPTIONS] ./tests/test.sh | |
# - distro: a supported Docker distro version (default = "centos7") | |
# - playbook: a playbook in the tests directory (default = "test.yml") | |
# - role_dir: the directory where the role exists (default = $PWD) | |
# - cleanup: whether to remove the Docker container (default = true) | |
# - container_id: the --name to set for the container (default = timestamp) |
Here are some resources if you want to read more about the concept. The original set of exercises made for Java is in the Thoughtworks Anthology, in a chapter by Jeff Bay, over the years after porting this to PHP I have decided to gradually revert back to original exercise strictness as I find we have evolved to a point where we can be strict. This means some of the older material will have a flowing set of guidelines.