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
CREATE OR REPLACE FUNCTION encrypt_field() | |
RETURNS TRIGGER | |
AS $func$ | |
BEGIN | |
IF PGP_SYM_ENCRYPT(NEW.encrypted_field, 'the-password-here')::text != OLD.encrypted_field::text THEN | |
NEW.encrypted_field := PGP_SYM_ENCRYPT(NEW.encrypted_field, 'the-password-here')::text; | |
END IF; | |
RETURN NEW; | |
END | |
$func$ |
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 | |
$mappings = [ | |
82 => [ | |
'key' => 'R', | |
'message' => 'Redownloading all pages...', | |
], | |
114 => [ | |
'key' => 'r', | |
'message' => 'Redownloading all pages...', |
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
body { | |
margin:40px auto; | |
max-width:650px; | |
line-height:1.6; | |
font-size:18px; | |
color:#444; | |
padding:0 10px; | |
background: #EEE; | |
} |
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
Show hidden characters
{ | |
"folders": [ | |
{ | |
"file_exclude_patterns": [".gitkeep", "*.min.*", "*.snap", "*lock*"], | |
"folder_exclude_patterns": [ | |
".sanity", | |
".astro", | |
".netlify", | |
".next", | |
".vercel", |
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
# You can run the pipeline image locally using the following command: | |
# docker run --platform linux/amd64 -it --volume="$PWD:/app" --workdir="/app" --entrypoint=/bin/bash avetkhov/flutter:latest | |
definitions: | |
caches: | |
pub: ~/.pub-cache # $PUB_CACHE default value | |
flutter: /opt/flutter # flutter sdk path | |
steps: | |
- step: &flutter-run | |
name: Flutter Test |
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
{ | |
"cmd": ["flutter", "run", "--hot"], | |
"selector": "source.dart", | |
"working_dir": "$project_path", | |
"variants": [ | |
{ | |
"name": "Flutter - Format File", | |
"cmd": ["dart", "format", "$file"] | |
}, | |
{ |
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
{ | |
"folders": [ | |
{ | |
"path": ".", | |
"folder_exclude_patterns": [ | |
".dart_tool", | |
"build", | |
"web", | |
"windows", | |
"linux", |
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
# `npx create-payload-app` with a project called `demo` | |
version: '3' | |
services: | |
payload: | |
image: node:18-alpine | |
ports: | |
- "3000:3000" | |
volumes: | |
- ./demo:/home/node/app |
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
# docker run -d --name inbucket -p 9000:9000 -p 2500:2500 -p 1100:1100 inbucket/inbucket | |
# open http://localhost:9090/ | |
version: '3.8' | |
services: | |
inbucket: | |
container_name: inbucket | |
image: inbucket/inbucket:3.0.3 | |
ports: | |
- '2500:2500' # SMTP |
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 | |
declare(strict_types=1); | |
use App\Models\User; | |
use Illuminate\Support\Facades\Artisan; | |
use Symfony\Component\HttpFoundation\Cookie; | |
use Illuminate\Cookie\CookieValuePrefix; | |
Artisan::command('user-cookie', function (): void { |