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
| # Fail2Ban filter to match hung up requests to nginx | |
| # | |
| [Definition] | |
| # The request often doesn't contain a method, only some encoded garbage | |
| # This will also match requests that are entirely empty | |
| failregex = ^<HOST> - \S+ \[\] "[^"]*" 499 | |
| datepattern = {^LN-BEG}%%ExY(?P<_sep>[-/.])%%m(?P=_sep)%%d[T ]%%H:%%M:%%S(?:[.,]%%f)?(?:\s*%%z)? |
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
| { | |
| "preset": "laravel", | |
| "rules": { | |
| "array_syntax": { | |
| "syntax": "short" | |
| }, | |
| "blank_line_after_namespace": true, | |
| "blank_line_after_opening_tag": true, | |
| "blank_line_between_import_groups": true, | |
| "cast_spaces": { |
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\Console\Commands; | |
| use App\Models\Role; | |
| use App\Models\User; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\Hash; | |
| use function Laravel\Prompts\multiselect; |
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 | |
| NVM_VERSION="v0.39.7" | |
| if [ ! -d ~/.nvm ]; then | |
| curl "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" | bash | |
| fi | |
| source ~/.nvm/nvm.sh | |
| source ~/.profile |
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
| { | |
| "plugins": [ | |
| ], | |
| "env": { | |
| "node": true | |
| }, | |
| "parserOptions": { | |
| "ecmaVersion": 2023 |
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 | |
| # $WP_USER | |
| # $WP_PASSWORD | |
| # $WP_USER_EMAIL | |
| # $SITE_DOMAIN | |
| echo "** Creating default DB and users" | |
| mysql -u root -p"$MYSQL_ROOT_PASSWORD" <<EOF |
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
| class UpgradeDetails: SKSpriteNode { | |
| init(for upgrade: Upgrade, at point: CGPoint, of size: CGSize) { | |
| // can purchase flag | |
| let canPurchase = GameData.shared.canPurchaseUpgrade(upgrade: upgrade) | |
| super.init(texture: nil, | |
| color: canPurchase ? .magenta : .gray, | |
| size: size) | |
| name = "UpgradeDetails" |
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 | |
| # -*- mode: sh; indent-tabs-mode: nil; sh-basic-offset: 4; -*- | |
| # vim: et sts=4 sw=4 | |
| # SPDX-License-Identifier: LGPL-2.1+ | |
| # Modified version of steamos-devmode | |
| set -euo pipefail | |
| # a file that gets removed when the image changes |