Skip to content

Instantly share code, notes, and snippets.

View ryanmortier's full-sized avatar

Ryan Mortier ryanmortier

View GitHub Profile
@maxxhaxx
maxxhaxx / eqapo_pubg.md
Last active November 19, 2023 04:40
Equalizer APO guide (PUBG)

Why?

Equalizer APO is a free software which adds zero delay to your audio latency. Some users experience noticable audio latency delays when using programs like Voicemeeter Banana, so this is a better option for gaming in my opinion. Some prefer the software called Peace Equalizer which is simply a interface for Equalizer APO, but it will limit your options for more advanced usage.

PUBG is known for causing hearing damage over time if played at a high volume, and Equalizer APO gives you a lot of options to lower your in game sounds without loosing the ability to hear footsteps.

Install Equalizer APO

Download Equalizer APO, and start the .exe file to go to setup wizard.
image

Click Next and Agree until you are asked to select the device to install APO for.

@Zhendryk
Zhendryk / The Ultimate Windows Development Environment.md
Last active March 7, 2024 21:30
How to set up the ultimate Windows development environment
@ShahinSorkh
ShahinSorkh / .php_cs
Last active September 17, 2020 13:38
php-cs-fixer config to follow laravel style guides
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->name('*.php')
->notName('_ide_helper.php')
->notName('*.blade.php')
->notPath('bootstrap')
->notPath('node_modules')
->notPath('storage')
@laravel-shift
laravel-shift / .php-cs-fixer.php
Last active April 9, 2024 14:08
PHP CS Fixer - Laravel Coding Style Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
@calebporzio
calebporzio / tinker_helper.php
Created January 30, 2019 23:56
A quick, memorable way to initiate an "artisan tinker" session and play with variables.
<?php
function tinker(...$args) {
// Because there is no way of knowing what variable names
// the caller of this function used with the php run-time,
// we have to get clever. My solution is to peek at the
// stack trace, open up the file that called "tinker()"
// and parse out any variable names, so I can load
// them in the tinker shell and preserve their names.
@jakub-g
jakub-g / async-defer-module.md
Last active April 12, 2024 07:32
async scripts, defer scripts, module scripts: explainer, comparison, and gotchas

<script> async, defer, async defer, module, nomodule, src, inline - the cheat sheet

With the addition of ES modules, there's now no fewer than 24 ways to load your JS code: (inline|not inline) x (defer|no defer) x (async|no async) x (type=text/javascript | type=module | nomodule) -- and each of them is subtly different.

This document is a comparison of various ways the <script> tags in HTML are processed depending on the attributes set.

If you ever wondered when to use inline <script async type="module"> and when <script nomodule defer src="...">, you're in the good place!

Note that this article is about <script>s inserted in the HTML; the behavior of <script>s inserted at runtime is slightly different - see Deep dive into the murky waters of script loading by Jake Archibald (2013)

@calebporzio
calebporzio / HasUuid.php
Created July 5, 2018 17:36
A little trait to add to models that will have Uuids
<?php
// Example usage in a model:
class ExampleModel extends Model
{
use HasUuid;
protected $primaryKey = 'uuid';
@BenSampo
BenSampo / deploy.sh
Last active April 20, 2024 23:54
Laravel deploy script
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
php artisan down || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin $FORGE_SITE_BRANCH
@swalkinshaw
swalkinshaw / tutorial.md
Last active November 13, 2023 08:40
Designing a GraphQL API