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
| import snippets/* | |
| :80 { | |
| } | |
| import laravel-app domain.com /home/user/laravel/folder |
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 | |
| # 1. Check if script is run as root | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root." | |
| exit 1 | |
| fi | |
| # 2. Get input domain/subdomain name | |
| read -p "Enter domain/subdomain name: " domain |
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
| import: | |
| - recipe/laravel.php | |
| config: | |
| repository: 'git@github.com:user/repo.git' | |
| branch: main | |
| shared_files: | |
| - '.env' | |
| writable_mode: chmod | |
| writable_recursive: true |
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
| CGO_ENABLED=1 \ | |
| GOOS=linux \ | |
| GOARCH=arm GOARM=6 \ | |
| go build -tags "sqlite_foreign_keys linux" -ldflags="-s -w" \ | |
| -o _output/linux/yarr ./cmd/yarr |
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
| # /etc/systemd/system/yarr.service | |
| [Unit] | |
| Description=Yarr Service | |
| After=network.target | |
| [Service] | |
| User=user | |
| ExecStart=/home/user/.local/bin/yarr -addr "0.0.0.0:7070" | |
| WorkingDirectory=/home/user/.local/bin |
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\Filament; | |
| use App\Filament\Pages\Auth\Login; | |
| use Filament\Http\Middleware\Authenticate; | |
| use Filament\Http\Middleware\DisableBladeIconComponents; | |
| use Filament\Http\Middleware\DispatchServingFilamentEvent; | |
| use Filament\Pages; | |
| use Filament\Panel; |
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
| illuminate:foundation:down|a:7:{s:6:"except";a:0:{}s:8:"redirect";N;s:5:"retry";N;s:7:"refresh";N;s:6:"secret";N;s:6:"status";i:503;s:8:"template";N;}|2024890720 |
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
| @echo off | |
| set TOKEN=YOUR_TOKEN | |
| set NPSN=YOUR_NPSN | |
| curl -X GET ^ | |
| -H "Authorization: Bearer %TOKEN%" ^ | |
| "http://localhost:5774/WebService/getSekolah?npsn=%NPSN%" > data-sekolah.txt | |
| curl -X GET ^ |
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
| # To learn more about how to use Nix to configure your environment | |
| # see: https://developers.google.com/idx/guides/customize-idx-env | |
| {pkgs}: { | |
| # Which nixpkgs channel to use. | |
| channel = "stable-24.11"; # or "unstable" | |
| # Use https://search.nixos.org/packages to find packages | |
| packages = [ | |
| pkgs.php82 | |
| pkgs.php82Packages.composer | |
| pkgs.nodejs_20 |
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
| # To learn more about how to use Nix to configure your environment | |
| # see: https://developers.google.com/idx/guides/customize-idx-env | |
| { pkgs, ... }: { | |
| # Which nixpkgs channel to use. | |
| channel = "stable-23.11"; # or "unstable" | |
| # Use https://search.nixos.org/packages to find packages | |
| packages = [ | |
| pkgs.php82 | |
| pkgs.php82Packages.composer | |
| # pkgs.go |