I hereby claim:
- I am leemcd56 on github.
- I am leemcd56 (https://keybase.io/leemcd56) on keybase.
- I have a public key ASCD4fYH1ogTZFtoHp5_BHyeSKm3NdA-MFKNCLYCE5T4Pwo
To claim this, I am signing this object:
#!/bin/bash | |
# Sourced from Unknown's answer (https://unix.stackexchange.com/a/771262) | |
# Note: Requires awk and gsed | |
# Define your YouTube URL here | |
videoUrl= | |
yt-dlp $videoUrl --dump-json | | |
jq -r ".chapters[] | {start_time, title}" | |
<?php | |
Collection::macro('joinWithOxfordComma', function(): string { | |
/** @var \Illuminate\Support\Collection $this */ | |
return $this->join( | |
glue: ', ', | |
finalGlue: $this->count() > 2 ? ', and ' : ' and ', | |
); | |
}); |
<?php | |
namespace App\Helpers; | |
final class ArrayHelper | |
{ | |
/** | |
* Determine if two associative arrays are similar. | |
* | |
* Both arrays must have the same indexes with identical values |
<?php | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'array_syntax' => [ | |
'syntax' => 'short', | |
], | |
'align_multiline_comment' => [], |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# Determine if any updates were made | |
did_update=false | |
# Update Homebrew | |
brew update > /dev/null; | |
new_brew_packages=$(brew outdated --quiet) | |
num_brew_packages=$(echo $new_brew_packages | wc -w) |
<?php | |
array(); | |
array_add(); | |
array_change_key_case(); | |
array_chunk(); | |
array_column(); | |
array_combine(); | |
array_compact(); | |
array_count(); |
#!/bin/sh | |
# up - script to keep your Mac up-to-date (both OS and Homebrew updates) via the command line | |
# run thus to to install: cd /usr/local/bin && curl -s -O https://gist.githubusercontent.com/mayel/e681a6175bf17366a16e03006d7feac2/raw/bb4ddb0c4842f5633fa1f29df61c433760c4affe/up && chmod 755 /usr/local/bin/up | |
# and then run it anytime by simply entering the command: up | |
# By https://github.com/mayel based on a script by https://github.com/imwally | |
# Homebrew |
<?php | |
// Trouble knowing the current template? | |
add_action('admin_bar_menu', function ($adminBar) { | |
global $template; | |
$templateName = basename($template); | |
$adminBar->add_menu([ | |
'id' => 'template-name', | |
'parent' => 'top-secondary', |