Skip to content

Instantly share code, notes, and snippets.

View williamrice's full-sized avatar

William Rice williamrice

View GitHub Profile
@williamrice
williamrice / db_duplicates.php
Created February 27, 2023 00:03
Some example code to delete duplicate users from the db
<?php
$mysqli = new mysqli("db", "user", "password", "test_db");
// Check connection
if ($mysqli->connect_errno) {
echo "Failed to connect to MySQL: " . $mysqli->connect_error;
exit();
}
@williamrice
williamrice / docker-compose.yml
Created February 24, 2023 01:14
Wordpress, PHP 7, Apache, Mysql Docker-compose
version: '3'
services:
# Database
db:
platform: linux/x86_64
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
{
"basics": {
"name": "William Rice",
"label": "Software Developer",
"image": "",
"email": "william.rice192@gmail.com",
"phone": "",
"url": "https://johndoe.com",
"summary": "Currently seeking AAS, Programming - Software Development. Anticipated graduation in Fall 2022. Currently working as a full-time Police Detective, ready and confident to pursue my dream job as a software developer.",
"location": {