Skip to content

Instantly share code, notes, and snippets.

View cbj4074's full-sized avatar

Ben Johnson cbj4074

View GitHub Profile
@cbj4074
cbj4074 / index.php
Last active February 29, 2020 00:20
Changes required to use non-standard public directory in Laravel 5
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylorotwell@gmail.com>
*/
/*
@cbj4074
cbj4074 / docker-compose.yml
Created April 14, 2021 15:13
docker-compose.yml entry for adding phpMyAdmin to Laravel 8 Sail
services:
phpmyadmin:
networks:
- sail
@cbj4074
cbj4074 / docker-compose.yml
Created April 27, 2021 12:40
How to configure docker-compose.yml to enable phpMyAdmin in Laravel Sail
services:
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- 8080:80
environment:
- PMA_HOST=mysql
networks:
- sail
@cbj4074
cbj4074 / oracle-instant-client.sh
Created May 17, 2018 16:19
Shell script to install Oracle OCI8 extension for PHP on Ubuntu
#!/bin/sh
echo 'Installing Oracle Instant Client...'
export DEBIAN_FRONTEND=noninteractive
apt-get -yq install libaio1 unzip php-dev
# See: http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html#ic_x64_inst
client_version='12_2'
@cbj4074
cbj4074 / README.md
Last active December 20, 2023 15:57
Creating a Certificate Authority for Self-Signing TLS Certificates with OpenSSL

Creating the CA (Certificate Authority)

There is quite a bit of preparation and configuration required to create a CA. Fortunately, once the configuration is correct, the remainder of the process is relatively simple.

Create necessary directories and files

Absent these directories, openssl will emit errors during certain steps throughout the overall process.

$ cd ~