A .ts
script to output information about a Cognito user pool. This uses the V3 JS client to call describe-user-pool
This is simply one means, amongst many, to fetch user pool info.
user@~: $ mkdir cognito_test
A .ts
script to output information about a Cognito user pool. This uses the V3 JS client to call describe-user-pool
This is simply one means, amongst many, to fetch user pool info.
user@~: $ mkdir cognito_test
Important
Read the docs: https://developer.apple.com/documentation/professional_video_applications/fxplug/building_an_fxplug_plug-in_from_an_xcode_template
[!NOTE]
// benchmarking two flavors of logging | |
// | |
// run with `go test -benchmem -bench=.` | |
// | |
// Example output: | |
// ---------------------------------------------------------- | |
// goos: darwin | |
// goarch: arm64 | |
// pkg: go-benchmarks | |
// BenchmarkLogPlain-10 3548698 332.0 ns/op 64 B/op 2 allocs/op |
function copyToClip(str) { | |
function listener(e) { | |
e.clipboardData.setData("text/html", str); | |
e.clipboardData.setData("text/plain", str); | |
e.preventDefault(); | |
} | |
document.addEventListener("copy", listener); | |
document.execCommand("copy"); | |
document.removeEventListener("copy", listener); | |
}; |
Here is a simulated scenario where you are a hacker and you have gained access to a passwords database. For simplicity, there are only 2 rows.
...the bounty...
I (@thiskevinwang) will venmo $100 USD to the first person who can provide the password behind either of these two rows.
import util from "util"; | |
import stream from "stream"; | |
const { Readable } = stream; | |
const pipeline = util.promisify(stream.pipeline); | |
import { S3Client, GetObjectCommand } from "@aws-sdk/client-s3"; | |
export const handler = awslambda.streamifyResponse( | |
async (event, responseStream, context) => { | |
const s3 = new S3Client({ region: "us-east-1" }); |
// run on runkit: https://runkit.com/embed/igg9vk09v684 | |
const semver = require('semver') | |
semver.clean("v1.5.0-alpha20230405") // "1.5.0-alpha20230405" | |
semver.prerelease('v1.5.0-alpha20230405') // ["alpha20230405"] | |
semver.prerelease('v1.5.0-beta.1') // ["beta", 1] | |
semver.prerelease('v1.5.0-rc.1') // ["rc", 1] | |
semver.prerelease('v1.5.0-rc1') // ["rc1"] |
#!bin/sh | |
# This script fetches GitHub environments and delets them | |
# - requires the `gh` CLI | |
# - requires `jq` | |
envs=$(gh api repos/{owner}/{repo}/environments --paginate | jq -r ".environments[].name") | |
for env in $envs | |
do |
[ec2-user@ip-172-31-89-170]~% sudo yum repolist | |
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd | |
repo id repo name status | |
!amzn2-core/2/aarch64 Amazon Linux 2 core repository 20,542 | |
amzn2extra-docker/2/aarch64 Amazon Extras repo for docker 66 | |
amzn2extra-kernel-5.10/2/aarch64 Amazon Extras repo for kernel-5.10 213 | |
hashicorp/aarch64 Hashicorp Stable - aarch64 274 | |
repolist: 21,095 | |
2022-11-14T05:56:48.787Z [INFO] waypoint.server.grpc: /hashicorp.waypoint.Waypoint/UI_GetProject request | |
2022-11-14T05:56:48.789Z [INFO] waypoint.server.grpc: /hashicorp.waypoint.Waypoint/UI_GetProject response: error=<nil> duration=2.324584ms | |
2022-11-14T05:56:48.790Z [INFO] waypoint.server.http: HTTP request: POST /grpc/hashicorp.waypoint.Waypoint/UI_GetProject: ln=[::]:9702 date=2022-11-14T05:56:48.786647255Z http.host=localhost:9702 http.method=POST http.request_path=/grpc/hashicorp.waypoint.Waypoint/UI_GetProject http.remote_addr=172.18.0.1 http.response_size=76 http.scheme="" http.scheme_forwarded=false http.tls=true http.status_code=200 http.useragent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" http.version=HTTP/1.1 | |
2022-11-14T05:56:50.442Z [INFO] waypoint.server.grpc: /hashicorp.waypoint.Waypoint/UI_ListReleases request | |
2022-11-14T05:56:50.443Z [INFO] waypoint.server.grpc: /hashicorp.waypoint.Waypoint/ListPushedArtifacts r |