This file contains hidden or 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 | |
| declare(strict_types=1); | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Encryption\Encrypter; | |
| use Illuminate\Support\Str; |
This file contains hidden or 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\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| use Illuminate\Database\Query\Builder as QueryBuilder; | |
| use Illuminate\Database\Eloquent\Builder as EloquentBuilder; | |
| class BuilderMacroServiceProvider extends ServiceProvider | |
| { |
This file contains hidden or 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 | |
| declare(strict_types=1); | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Filesystem\Filesystem; | |
| use function Laravel\Prompts\confirm; |
This file contains hidden or 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 ...; | |
| use Dedoc\Scramble\Extensions\OperationExtension; | |
| use Dedoc\Scramble\Support\Generator\Operation; | |
| use Dedoc\Scramble\Support\Generator\Parameter; | |
| use Dedoc\Scramble\Support\Generator\Schema; | |
| use Dedoc\Scramble\Support\Generator\Types\StringType; | |
| use Dedoc\Scramble\Support\RouteInfo; |
This file contains hidden or 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
| #!/bin/bash | |
| mkdir converted | |
| for i in *.mp3 | |
| do | |
| sox "$i" -e u-law -r 8000 -D -c 1 "converted/$(basename "$i" .mp3).wav" | |
| done |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| # Important note: this will add a new patch release AND deploy | |
| if [ $# -lt 2 ]; then | |
| git fetch --all --tags | |
| # Interactively get info | |
| LATEST=$(git describe --tags production) | |
| read -e -p "Enter the version to patch, or press return for default [$LATEST]: " VERSION |
This file contains hidden or 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
| #!/bin/bash | |
| if [ $# -eq 0 ]; then | |
| echo "Usage: laravel-init app_name" | |
| exit 1 | |
| fi | |
| ### GLOBAL COMPOSER PACKAGES | |
| composer global require hirak/prestissimo friendsofphp/php-cs-fixer |
This file contains hidden or 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
| const magic_terms = { | |
| and: '&', | |
| or: '|', | |
| not: '!', | |
| OR: '|', | |
| AND: '&', | |
| NOT: '!', | |
| '&': '&', | |
| '|': '|', | |
| '!': '!', |
This file contains hidden or 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
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: myservice | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Put a short description of the service here | |
| # Description: Put a long description of the service here | |
| ### END INIT INFO |
This file contains hidden or 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
| #!/bin/sh | |
| # Linode DDNS Updater script | |
| # By Will Vincent <will@willvincent.com> | |
| # | |
| # Requirements: | |
| # - A Linode account (obviously) | |
| # - A domain record already created to update with the script | |
| # - curl & jq | |
| # |
NewerOlder