Skip to content

Instantly share code, notes, and snippets.

View bobbyahines's full-sized avatar

Bobby Hines bobbyahines

View GitHub Profile
@bobbyahines
bobbyahines / MysqliConnect.php
Created February 5, 2021 19:00
PHP MySQLi Connection Class
<?php declare(strict_types=1);
class MysqliConnect
{
/**
* @var string
*/
protected string $hostName;
/**
#!/usr/bin/env bash
#Debian-based Linux
MAJOR_VERSION=1
MINOR_VERSION=15
PATCH_VERSION=0
FSWATCH_VERSION="$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION"
FSWATCH_URL="https://github.com/emcrisostomo/fswatch/releases/download/$FSWATCH_VERSION/fswatch-$FSWATCH_VERSION.tar.gz"
MAKE_STR=$(apt-get list --installed | gcc)
@bobbyahines
bobbyahines / CommonDentalAbbreviations.json
Last active July 30, 2020 15:56
A JSON file containing Dental Practice common abbreviations.
[
{
"abbreviations": ["b"],
"word": "buccal",
"definition": "",
"source": "",
"tags": ["tooth", "surfaces"]
},
{
"abbreviations": ["d"],
@bobbyahines
bobbyahines / docker-compose.yml
Created December 26, 2018 02:58
Docker Compose a New Postgres 11 Database
version: '3.7'
services:
db:
image: postgres:11
container_name: postgres_db
ports:
- "5432:5432"
volumes:
- ./db:/var/lib/postgresql/data/pgdata
- ./logs:/var/lib/postgresql/data/logs
@bobbyahines
bobbyahines / installDockerCE(Mint19Tara).sh
Last active March 10, 2019 05:56
Install Docker on Linux Mint 19 (Tara)
#!/usr/bin/env bash
# Run as Root/Sudo User
# Update system.
apt-get update -y
# Install packages needed for adding docker-ce repository.
apt install -y apt-transport-https \
ca-certificates \
curl \
<?php
/**
* PHP HMAC SHA256
*/
$message = "Message";
$secret = "secret";
$s = hash_hmac('sha256', $message, $secret, true);
@bobbyahines
bobbyahines / phpColorCodes.php
Created August 13, 2018 00:46
A nested-associative array of the codes for echoing colored text in the command line.
<?php
$phpColorCodeEscapes = [
"instructions" => "echo '\e[0;36mSome Text\e[0m';",
"codes" => [
[
"color" => "Black",
"code" => "0;30"
],
[