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 type { | |
| APIGatewayProxyEventV2, | |
| APIGatewayProxyHandlerV2, | |
| APIGatewayProxyStructuredResultV2, | |
| Context, | |
| } from 'aws-lambda' | |
| import { Buffer } from 'node:buffer' | |
| export interface ApiRequest< | |
| B = Record<string, unknown>, |
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
| accounts: | |
| "000000000000": | |
| presets: | |
| - common | |
| blocklist: | |
| - "999999999999" | |
| presets: | |
| common: | |
| filters: | |
| AthenaWorkGroup: |
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 | |
| # Source: https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html | |
| [[ -n "${AWS_ACCESS_KEY_ID}" ]] || { echo "AWS_ACCESS_KEY_ID required" >&2; exit 1; } | |
| [[ -n "${AWS_SECRET_ACCESS_KEY}" ]] || { echo "AWS_SECRET_ACCESS_KEY required" >&2; exit 1; } | |
| readonly parameterName="SlawekTestParam" | |
| readonly method="POST" |
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 java.text.SimpleDateFormat | |
| import java.security.MessageDigest | |
| import javax.crypto.Mac | |
| import javax.crypto.spec.SecretKeySpec | |
| import org.apache.jmeter.protocol.http.control.Header | |
| def region = vars.get("aws_region") | |
| def serviceName = vars.get("aws_service_name") | |
| def accessKeyId = vars.get("aws_access_key_id") | |
| def secretAccessKey = vars.get("aws_secret_access_key") |
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 java.text.SimpleDateFormat | |
| import java.security.MessageDigest | |
| import javax.crypto.Mac | |
| import javax.crypto.spec.SecretKeySpec | |
| import org.apache.jmeter.protocol.http.control.Header | |
| def region = vars.get("aws_region") | |
| def serviceName = vars.get("aws_service_name") | |
| def accessKeyId = vars.get("aws_access_key_id") | |
| def secretAccessKey = vars.get("aws_secret_access_key") |
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 | |
| # shellcheck enable=all disable=SC2154 | |
| export BROWSER=${2:-${BROWSER:-google-chrome-stable}} | |
| export AWS_PROFILE=${1:-${AWS_PROFILE:-${AWS_DEFAULT_PROFILE:-default}}} | |
| echo "Using profile '${AWS_PROFILE}'..." | |
| echo "Checking if it's an SSO profile..." | |
| if aws configure get sso_session &>/dev/null; then |
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
| DELETE FROM mysql.global_priv WHERE User=''; | |
| DELETE FROM mysql.global_priv WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1'); | |
| DROP DATABASE IF EXISTS test; | |
| DELETE FROM mysql.db WHERE Db='test' OR Db='test\_%'; | |
| FLUSH PRIVILEGES; |
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
| package main | |
| import ( | |
| "cmp" | |
| "context" | |
| "fmt" | |
| "slices" | |
| "time" | |
| _ "github.com/joho/godotenv/autoload" |
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
| package main | |
| import ( | |
| "fmt" | |
| "maps" | |
| "slices" | |
| "sort" | |
| "github.com/godbus/dbus/v5" | |
| ) |
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 -x | |
| DBUS="gdbus call -y" | |
| DEST=org.freedesktop.UDisks2 | |
| OBJP=/org/freedesktop/UDisks2/block_devices/sdb | |
| $DBUS -d $DEST -o $OBJP -m $DEST.Block.Format dos {} | |
| $DBUS -d $DEST -o $OBJP -m $DEST.PartitionTable.CreatePartition 4194304 0 0x0e "" {} |
NewerOlder