Skip to content

Instantly share code, notes, and snippets.

View sean-e-dietrich's full-sized avatar

Sean Dietrich sean-e-dietrich

View GitHub Profile
<?php
/**
* Database configuration.
*/
$databases = array(
'default' => array(
'default' => array(
'database' => getenv('SITE_ID'),
'username' => 'root',
version: "2.1"
services:
cli:
volumes:
- /var/www/web/themes/custom/oppenheimer/node_modules
#!/usr/bin/env bash
#: exec_target = cli
## Refresh database, files, and import configuration
##
## Usage: fin refresh
# Abort if anything fails
set -e
@sean-e-dietrich
sean-e-dietrich / autoloader.patch
Created October 30, 2021 07:11
Wordpress Autoloader
diff --git a/wp-settings.php b/wp-settings.php
index 99e77f3..aa73603 100644
--- a/wp-settings.php
+++ b/wp-settings.php
@@ -30,6 +30,7 @@ define( 'WPINC', 'wp-includes' );
* @global string $wp_local_package Locale code of the package.
*/
global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version, $wp_local_package;
+require ABSPATH . '/autoload.php';
require ABSPATH . WPINC . '/version.php';
gdb `which php` /tmp/core-php.2145740
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
<IfModule mod_rewrite.c>
RewriteEngine on
# Force image styles that have local files that exist to be generated.
RewriteCond %{REQUEST_URI} ^/sites/([.]*)/files/styles/[^\/]*/public/((.*))$
RewriteCond %{DOCUMENT_ROOT}/sites/%1/files/%2 -f
RewriteRule ^(.*)$ $1 [QSA,L]
# Otherwise, send anything else that's in the files directory to the
# production server.
RewriteCond %{REQUEST_URI} ^/sites/(.*)/files/.*$
RewriteCond %{REQUEST_URI} !^/sites/(.*)/files/(css|advagg-css|js|advagg-js)/.*$
[
{
"providerKey": 12345,
"entity": ["FAC1"],
"longName": "User Test MD",
"firstName": "Test",
"lastName": "User",
"degree": "M.D.",
"location": [
{
---
ansible_connection: local
ansible_environment: {}
ansible_post_tasks: null
ansible_pre_tasks: null
cert_prefix: https
config:
baked: default.yml
defaults_dir: /tmp/defaults
env:
@sean-e-dietrich
sean-e-dietrich / subdomain.htaccess
Created December 6, 2020 00:27
WordPress HTaccess files
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
<?php
echo phpinfo();