A Gist to store my non-production Scoop and Shovel manifests before migrating them to my main bucket.
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 | |
// From Marcel Pociot's tweet | |
// See: https://twitter.com/marcelpociot/status/1389881758267625473 | |
Str::macro('readDuration', function (... $text) { | |
$totalWords = str_word_count(implode(' ', $text)); | |
$minutesToRead = round($totalWords / 200); | |
return (int) max(1, $minutesToRead); |
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
# | |
# Starship Zplug | |
# https://github.com/starship/starship | |
# | |
# Add the following to your ".zshrc": | |
# zplug "pxgamer/9070c3dbd6483d69a4b376f9dbcb9e62", use:starship.zsh, from:gist, as:theme | |
export STARSHIP_VERSION='0.26.4' | |
STARSHIP_LATEST_RELEASE=https://github.com/starship/starship/releases/latest/download/starship-x86_64-unknown-linux-gnu.tar.gz |
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
{ | |
"basics": { | |
"name": "Owen Voke", | |
"label": "Web Developer", | |
"picture": "https://i.imgur.com/BDMrEXd.jpg", | |
"email": "owen@voke.dev", | |
"website": "https://voke.dev", | |
"summary": "I'm a full stack web developer, primarily working with PHP and JavaScript in the open source community.", | |
"location": { | |
"city": "Bristol", |
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
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
✅ did:3:bafyreiefz3tenlodztyymmn6fvb54yfctq732e4d3ishxqpbxjrzil5ob4 ✅ | |
Create your profile today to start building social connection and trust online at https://3Box.io/ |
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 php | |
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Beat Saber Metadata Parser | |
|-------------------------------------------------------------------------- | |
| | |
| This application will parse the metadata from downloaded compressed | |
| Beat Saber song files. |
The following a migration guide for Version constants in v2.5.0
of the arionum-php
package.
The old constants were available in the pxgamer\Arionum\Transaction
class, but have now moved to a dedicated class at:
OwenVoke\Arionum\Transaction\Version
These will be removed from Transaction
in v3.0.0
.
Old | ~~ | New
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 | |
namespace App\Commands; | |
use Illuminate\Console\Command; | |
class DragonCommand extends Command | |
{ | |
/** {@inheritdoc} */ | |
protected $signature = 'dragon'; |
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
# Set the required PHP version | |
FROM php:7.3-cli | |
# Set the name of your application binary | |
ARG APP_NAME=application | |
# Update global packages for the container | |
RUN apt-get update | |
# Install any required PHP extensions |
NewerOlder