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
#!/bin/bash | |
# Function to display usage information | |
usage() { | |
echo "Usage: $0 <secret_value>" | |
exit 1 | |
} | |
# Check if a secret value is provided | |
if [ -z "$1" ]; then |
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
FROM node:latest | |
WORKDIR /usr/src/app | |
COPY package*.json ./ | |
RUN npm install | |
COPY . . |
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
services: | |
app: | |
image: amazon/aws-cli | |
ports: | |
- "8080" | |
environment: | |
AWS_ACCESS_KEY_ID: 'DUMMYIDEXAMPLE' | |
AWS_SECRET_ACCESS_KEY: 'DUMMYEXAMPLEKEY' | |
AWS_DEFAULT_REGION: 'us-east-1' |
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
INSERT INTO customers (name, email, created_by) | |
VALUES ('John Doe', '[email protected]', ROW('namespace1', '12345')); |
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
SELECT | |
id, | |
CONCAT('urn:aptive:customer:', id::text) as urn | |
FROM customers | |
LIMIT 5000 |
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
SELECT | |
id as id_int, | |
CONCAT('urn:aptive:customer:', i::text) as id_urn | |
FROM customers |
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
fail_on_severity: 'low' | |
license-check: true | |
vulnerability-check: true | |
# You do not need Legal approval to use code licensed under these licenses, for | |
# any use case. | |
allow_licenses: | |
- oAFL-1.1 | |
- oAFL-1.2 | |
- oAFL-2.0 |
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 | |
$unknown_format = [ | |
'2023/05/02', | |
'05/02/2023', | |
]; | |
foreach ($unknown_format as $fmt) { | |
echo date("Y-m-d", strtotime($fmt)) . PHP_EOL; | |
} |
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
name: Psalm Static Analysis | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: | |
actions: read |
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
Chase Pierce | |
:flag-ua: 12:38 PM | |
<?php declare(strict_types=1); | |
use PHPUnit\Framework\TestCase; | |
final class TechByteTest extends TestCase | |
{ | |
public function testTodaysPresentation(): void | |
{ |
NewerOlder