Skip to content

Instantly share code, notes, and snippets.

View soup-bowl's full-sized avatar
🎯
Focusing

Casey LP soup-bowl

🎯
Focusing
View GitHub Profile
@soup-bowl
soup-bowl / index.php
Last active September 1, 2017 12:16
A quick way to display a quick no.
<?php
$words = [
"No"
];
$background = "black";
$colour = "white";
?>
<head>
<title>Is something working yet?</title>
@soup-bowl
soup-bowl / start-wallboard.sh
Last active October 13, 2017 08:29
Simple Chromium Wallboard Bash (combined with rotating tabs plugin)
#!/bin/bash
URL1="http://example.com"
URL2="http://example.com"
URL3="http://example.com"
unclutter -idle 0 & # Make sure unclutter has been installed. Hides the cursor.
chromium-browser $URL1 $URL2 $URL3 -kiosk --disable-session-crashed-bubble --disable-infobars
@soup-bowl
soup-bowl / cacert-downloader.bat
Created November 21, 2017 09:21
cacert.pem auto-downloader (for Task Sheduler)
@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 / wp-force-login.php
Last active March 27, 2019 21:39
Passwordless Login for WordPress
<?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();
@soup-bowl
soup-bowl / .bash_aliases
Last active March 27, 2019 21:40
Natively installed?! You're doing it wrong!
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 / docker-compose.yml
Last active June 5, 2019 13:17
Docker Compose file for a quick WordPress installation. Also recommend installing Log Viewer and custom SMTP (set to port 51003).
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 / install-mssql.sh
Last active June 6, 2019 11:02
Microsoft SQL Server driver installer for Local by Flywheel
#! /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 / upgrade-php.ps1
Last active September 24, 2019 07:26
Quick & dirty script to grab a new copy of PHP and Microsoft SQL Plugin and swaps over config to the upgrade.
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 {
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 / config.plist
Last active August 16, 2020 19:10
Clover Config for Toshiba Satellite Pro L850-1UJ - https://www.soupbowl.io/htoshl850
<?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/>