Skip to content

Instantly share code, notes, and snippets.

Avatar

Casey soup-bowl

View GitHub Profile
@soup-bowl
soup-bowl / config.plist
Last active Aug 16, 2020
Clover Config for Toshiba Satellite Pro L850-1UJ - https://www.soupbowl.io/htoshl850
View config.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>SSDT</key>
<dict>
<key>DropOem</key>
<false/>
View hardware.txt
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB
@soup-bowl
soup-bowl / docker-compose.yml
Created Mar 15, 2020
Docker-compose LAMP dev stack
View docker-compose.yml
version: '3.6'
services:
db:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: e9w86036f78sd9
volumes:
- "./database:/var/lib/mysql"
db_pma:
@soup-bowl
soup-bowl / upgrade-php.ps1
Last active Sep 24, 2019
Quick & dirty script to grab a new copy of PHP and Microsoft SQL Plugin and swaps over config to the upgrade.
View upgrade-php.ps1
param (
[Parameter(Mandatory=$true)][string]$version
)
if( Test-Path -Path ".\upgrade-php.xml" ) {
[xml]$configFile= get-content ".\upgrade-php.xml";
foreach ($option in $configFile.configuration.config) {
New-variable -Name $option.key -Value $option.value;
}
} else {
@soup-bowl
soup-bowl / install-mssql.sh
Last active Jun 6, 2019
Microsoft SQL Server driver installer for Local by Flywheel
View install-mssql.sh
#! /bin/bash
_DEB_VER=8
_MSSQL_VER=5.6.1
_PHP_VER=7.2
# Grab dependencies, then add Microsoft repo and grab further dependencies.
apt-get -q update
apt-get install -qy curl apt-transport-https wget gnupg build-essential autoconf pkg-config
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
@soup-bowl
soup-bowl / docker-compose.yml
Last active Jun 5, 2019
Docker Compose file for a quick WordPress installation. Also recommend installing Log Viewer and custom SMTP (set to port 51003).
View docker-compose.yml
version: '3.6'
services:
wp_db:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: password123
wp_db_admin:
depends_on:
- wp_db
@soup-bowl
soup-bowl / .bash_aliases
Last active Mar 27, 2019
Natively installed?! You're doing it wrong!
View .bash_aliases
alias php='docker run -it --rm php:7.3-alpine '
alias composer='docker run -it --rm --volume $PWD:/app --user $(id -u):$(id -g) composer '
@soup-bowl
soup-bowl / cacert-downloader.bat
Created Nov 21, 2017
cacert.pem auto-downloader (for Task Sheduler)
View cacert-downloader.bat
@echo off
SET source=C:\
del %source%cacert.pem.bak
rename %source%cacert.pem cacert.pem.bak
wget.exe -O %source%cacert.pem "https://curl.haxx.se/ca/cacert.pem"
@soup-bowl
soup-bowl / index.php
Last active Sep 1, 2017
A quick way to display a quick no.
View index.php
<?php
$words = [
"No"
];
$background = "black";
$colour = "white";
?>
<head>
<title>Is something working yet?</title>
@soup-bowl
soup-bowl / wp-force-login.php
Last active Mar 27, 2019
Passwordless Login for WordPress
View wp-force-login.php
<?php
include_once(__DIR__."/../wp-load.php");
$usr = get_user_by('ID', 1);
wp_clear_auth_cookie();
wp_set_current_user($usr->ID);
wp_set_auth_cookie($usr->ID);
wp_safe_redirect(user_admin_url());
exit();
You can’t perform that action at this time.