Skip to content

Instantly share code, notes, and snippets.

View cbj4074's full-sized avatar

Ben Johnson cbj4074

View GitHub Profile
@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 / gist:fcc5cee405b0d176b88aac633cf4069b
Created May 15, 2018 21:09
Homestead box v6.0.0 provisioning failure output
> vagrant destroy
homestead-7: Are you sure you want to destroy the 'homestead-7' VM? [y/N] y
==> homestead-7: Destroying VM and associated drives...
> vagrant up
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: Importing base box 'laravel/homestead'...
==> homestead-7: Matching MAC address for NAT networking...
==> homestead-7: Checking if box 'laravel/homestead' is up to date...
==> homestead-7: Setting the name of the VM: homestead-7
@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 ~
@cbj4074
cbj4074 / php7-ssh2-segfault-test.php
Created November 1, 2016 20:58
Demonstrates segfault that occurs with PHP 7.0.12 and PECL ssh2 extension, version 1.0
<?php
class ssh2
{
private $host = 'host';
private $user = 'user';
private $port = '22';
private $password = 'password';
private $con = null;
@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>
*/
/*