Skip to content

Instantly share code, notes, and snippets.

View bobmagicii's full-sized avatar
🤌

Bob Magic II bobmagicii

🤌
View GitHub Profile
@bobmagicii
bobmagicii / WT-RightClickEmptySpace.reg
Created November 6, 2023 21:26
These two Regedit files will add an Executable to your right click folders in Explorer. This example adds my portable install of Windows Terminal.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\Windows Terminal (Default)\command]
@="C:\\Apps\\WindowsTerminal\\WindowsTerminal.exe nt -d \"%V\""
@bobmagicii
bobmagicii / tools.code-snippets
Created July 11, 2023 19:03
VS Code Date Snippet
{
"The Date": {
"prefix": "--date",
"body": "$CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE"
},
"The Date, Quoted": {
"prefix": "--dateq",
"body": "'$CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE'"
},
@bobmagicii
bobmagicii / Util.php
Last active June 30, 2023 00:40
checking and confirming avif support in php
<?php
namespace Nether\Atlantis;
use Nether\Atlantis;
use Nether\Common;
use Exception;
use Imagick;
{
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"preferred-install": {
"netherphp/*": "source",
"*": "dist"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
#include <avr/sleep.h>
#define PinRelayOut 7
#define PinLampWarmup 3
#define PinLampMotion 4
#define PinMotionIn 2
#define ReadyWarmupTime 10000
unsigned short WasMotionOn;
@bobmagicii
bobmagicii / composer.json
Created November 8, 2022 19:47
basic composer.json for working on netherphp from source
{
"minimum-stability": "dev",
"config": {
"preferred-install": {
"netherphp/*": "source",
"*": "dist"
},
"allow-plugins": {
"netherphp/composer-plugin": true,
"dealerdirect/phpcodesniffer-composer-installer": true
<?php
class Util {
static public function
VarDump($Var):
void {
/*//
@date 2018-03-30
//*/
<?php
// php -S localhost:80 -t www www/index.php
$Root = dirname(__FILE__);
$Mime = NULL;
$File = match($_SERVER['REQUEST_URI']) {
'/' => "{$Root}/index.html",
default => "{$Root}{$_SERVER['REQUEST_URI']}"
};
<?php
$Args = $_SERVER['argv'];
$Dir = NULL;
$File = NULL;
$Fixed = NULL;
$OldTime = NULL;
$Iter = NULL;
$Found = 0;
<?php
require(sprintf(
'%s/vendor/autoload.php',
dirname(__FILE__,3)
));
require(sprintf(
'%s/conf/start.php',
dirname(__FILE__,3)