View human-list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
ul.human-list { | |
list-style: none; | |
} | |
ul.human-list li { | |
display: inline-block; | |
} | |
ul.human-list li:not(:last-child):after { |
View prs.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Install GH CLI client | |
brew install gh | |
# Configure organisation and username variables | |
ORG="orgname" | |
USER="username" | |
# Retrieve pull request JSON |
View NoLockScreen.reg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization] | |
"NoLockScreen"=dword:00000001 |
View mp3-2-m4a.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
for file in *.mp3; do ffmpeg -i $file -c:a aac -vn ${file%.mp3}.m4a; done |
View git-rename-ext.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
for file in `find templates -name "*.oldext" -type f -print`; do | |
git mv "$file" ${file%.oldext}.newext; | |
done |
View fix-nvme-missing-win-10.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Issue | |
========= | |
I had an issue on my B550 AMD motherboard where my NVME M.2 (GEN3) drive would show up in the BIOS, but was missing in Windows 10 intermittently. For example, when I first boot the computer up, the drive isn't in Windows, but if I restart Windows the drive appears. | |
I tried the solutions here, but none of them worked: | |
- https://www.techpowerup.com/forums/threads/nvme-ssd-not-showing-up-in-windows-on-amd-system.264448/ | |
- https://linustechtips.com/topic/1063692-m2-ssd-showing-up-in-bios-but-not-in-windows-10/ | |
- https://forums.tomshardware.com/threads/m-2-ssd-recognized-but-not-showing-up.2604341/ |
View google-search-spam-domains.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stack Overflow: | |
- https://newbedev.com/ | |
- https://www.titanwolf.org/ | |
- https://easysavecode.com/ | |
- https://www.codegrepper.com/ | |
- https://www.py4u.net/ | |
- https://lefred.be/ | |
- https://bountify.co/ | |
- https://coderedirect.com/ | |
- https://pretagteam.com/ |
View LogConsole.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// @see: https://stackoverflow.com/questions/48167834/how-to-remove-all-formatting-from-the-output-of-a-console-command-written-in-php | |
use Illuminate\Console\Events\CommandFinished; | |
use Illuminate\Support\Facades\{Event, Log}; | |
use Symfony\Component\Console\Helper\Helper; | |
Event::listen(function (CommandFinished $event) { | |
Log::info( | |
Helper::removeDecoration( |
View MemberOfMacro.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Database\Query\Builder; | |
$memberOf = function ($value, string $column, string $path = '$', $boolean = 'and') { | |
return $this->whereRaw( | |
sprintf( | |
'? MEMBER OF(JSON_EXTRACT(%s, "%s"))', | |
$this->getGrammar()->wrap($column), | |
$path | |
), |
View fixchars.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# @see: https://superuser.com/questions/617517/remove-all-illegal-characters-from-all-filenames-in-a-given-folder | |
# The 's/[\:?\\]//g' regular expression removes ?, : and \ characters. | |
# Dry Run: | |
find "/path/to/files" -type f -exec rename -n 's/[\:?\\]//g' {} \; | |
# Execute: | |
find "/path/to/files" -type f -exec rename 's/[\:?\\]//g' {} \; |
NewerOlder