Skip to content

Instantly share code, notes, and snippets.

View JohnnyWalkerDigital's full-sized avatar

Johnny Walker JohnnyWalkerDigital

  • Secret Cinema
  • London, UK
View GitHub Profile
@JohnnyWalkerDigital
JohnnyWalkerDigital / gamefaqs-download.js
Last active December 27, 2025 18:00
GameFAQs - Text File Extractor
// Copy and paste the following into your browser console - author: proboardslol
(function() {
const file = new Blob([$(".faqtext").text()], {type: "application/text"});
const a = document.createElement("a"),
url = URL.createObjectURL(file);
a.href = url;
a.download = window.document.title + ".txt";
document.body.appendChild(a);
a.click();
@JohnnyWalkerDigital
JohnnyWalkerDigital / conventional-commits.md
Last active February 13, 2026 01:30
A flow diagram showing which Conventional Commits prefix to use
flowchart TD
    A([Start]) --> B{Did you fix a bug?}
    B -->|Yes| C([ **fix** ])
    B -->|No| D{Did you change functionality or affect the UI?}

    D -->|Yes| E([**feat**])
    D -->|No| F{Did you add or change tests?}

 F -->|Yes| G([**test**])
@JohnnyWalkerDigital
JohnnyWalkerDigital / laravel-ci.yml
Last active February 20, 2026 10:57
GitHub Action: Laravel CI Pipeline
# Laravel CI Pipeline
# Description: Github Action to run code linting, static analysis, and Laravel tests
# Author: Johnny Walker
# Version: 1.1
# Date: 21 February 2026
# Requirements:
# PHP_CodeSniffer - https://github.com/PHPCSStandards/PHP_CodeSniffer/
# Larastan - https://github.com/larastan/larastan
# Recommended:
# Slavomat Coding Standard - https://github.com/slevomat/coding-standard
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>PSR-12 CodeSniffer configuration for Laravel projects</description>
<!-- Base -->
<rule ref="PSR12"/>
<!-- Disallow dangerous / debug functions -->
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
@JohnnyWalkerDigital
JohnnyWalkerDigital / mailChimpEmbeddedForm.scss
Last active January 22, 2021 18:36
MailChimp - Embedded Signup Form CSS Fields
// https://mailchimp.com/help/css-hooks-for-customizing-forms
// Container for form
#mc_embed_signup {
#mc-embedded-subscribe-form {
}
div.mc-field-group {
@JohnnyWalkerDigital
JohnnyWalkerDigital / laravel_email_reset_fix.md
Last active October 11, 2022 13:18
Laravel: Setting up password reset to work as expected

Here's how set your password reset experience so that the user doesn't have to enter their email address... without altering vendor/core - tested with Laravel 5.8 (should be fine with later versions, too):

1. Create own notification

Firstly create a new notification for your app:

php artisan make:notification ResetPassword

Then open the newly created file: app\Notifications\ResetPassword.php and make the following changes:

@JohnnyWalkerDigital
JohnnyWalkerDigital / laravel-password-reset.md
Last active July 2, 2025 18:55
Laravel: Fix password reset (User email not sent)

Here's how to overcome this common gotcha: The default password reset system not working out of the box with Laravel 5.x (as you're not sent the user's password), without having to alter altering vendor/core. Here's how to make it work as you'd expect it to without changing any vendor files.

1. Create own notification

Firstly create a new notification for your app:

php artisan make:notification ResetPassword

Then open the newly created file: app\Notifications\ResetPassword.php and make the following changes:

-- -------------------------------------------------------------------------- --
-- in: TppDefine.lua
-- -------------------------------------------------------------------------- --
-- list of cutscenes available upon returning to mother base
-- ordered by priority
_.MB_FREEPLAY_DEMO_PRIORITY_LIST={
"GoToMotherBaseAfterQuietBattle", -- quiet's heli fight
"ArrivedMotherBaseAfterQuietBattle", -- quiet's arrival