Skip to content

Instantly share code, notes, and snippets.

View bobmagicii's full-sized avatar
🤌

Bob Magic II bobmagicii

🤌
View GitHub Profile
<?php
class Container {
static protected
$Instance;
////////
static public function
@bobmagicii
bobmagicii / dp.php
Created May 17, 2024 04:59
quick wrapper for displayplacer on mac os
#!env php
<?php
// placed in ~/Local/bin, chmoded, with that added to PATH.
// requires: https://github.com/jakehilborn/displayplacer
// use `displayplacer list` to find your screen id and supported modes. then
// update the screen id and sizes to have what you want.
// $ dp <size>
@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 / composer.json
Last active May 17, 2024 05:30
lulz with Aspectus\Terminal
{
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"preferred-install": {
"netherphp/*": "source",
"*": "dist"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
<?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
$Image = new Imagick($Filename);
$Orientation = $Image->GetImageOrientation();
<?php
/*//
PS C:\Users\bob\Desktop> php .\test.php
Results For 1,000,000 Iterations
=> Test Concat: 0.294673s
=> Test Eval: 0.258425s
=> Test PrintF: 0.583331s
//*/
@bobmagicii
bobmagicii / fallout-4-fixes.md
Last active January 28, 2016 03:35
Bethesda Never Finishes Games

God Damnit Bethesda

Granted, I knew this going in because of previous experience with Bethesda titles, but as you may have found out playing Fallout 4 Bethesda has this nasty habit of never finishing titles ever since they formed their own publisher to blame for pushing out titles too early. So here is my list of completely retarded bullshit that is so obvious that they should have already had done but yet required the modding community to set straight.

AND THESE ARE THINGS THE COMMUNITY HAS FIXED WITH 0 DOCUMENTATION AND 0 TOOLS RELEASED

@bobmagicii
bobmagicii / bob-on-bass.md
Last active January 20, 2016 05:54
bob on bass

Songs I Actually Know I Can

(codes) 1 = from rocksmith 2014 stfulol 2 = if i practice really really hard i could

  • Cold Company - Minus The Bear (1)
  • Devo - Whip It (2)
  • Green Day - American Idiot
  • Green Day - Boulevard of Broken Dreams