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
| aws ec2 describe-regions --all-region --query '*[].RegionName' |
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
| class Construct extends Function { | |
| layers: boolean | undefined = undefined; | |
| service: boolean | undefined = undefined; | |
| artifacts: boolean | undefined = undefined; | |
| new() { | |
| return new Construct(); | |
| } | |
| constructor() { |
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 * as URL from "url"; | |
| import * as HTTPs from "https"; | |
| /*** | |
| * HTTPs Query Configuration Object | |
| * -------------------------------- | |
| * | |
| * @param url { String } | |
| * | |
| * @param method {String} |
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 * as URL from "url"; | |
| import * as HTTPs from "https"; | |
| /*** | |
| * HTTPs Query Configuration Object | |
| * -------------------------------- | |
| * | |
| * @param url { String } | |
| * | |
| * @param method {String} |
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
| aws ssm get-parameters-by-path --path /aws/service/global-infrastructure/services/lambda/regions \ | |
| --query 'Parameters[].Value' --output text | tr '[:blank:]' '\n' | grep -v -e ^cn- -e ^us-gov- | sort -r |
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
| #!/usr/bin/perl | |
| use Cwd; | |
| use strict; | |
| use warnings; | |
| use File::Find; | |
| my $CWD = Cwd::abs_path(); |
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
| { | |
| "tls.generate": "openssl req -config localhost.conf -new -x509 -sha256 -newkey rsa:2048 -nodes -keyout localhost.key -days 1024 -out localhost.crt", | |
| "tls.encrypt": "openssl pkcs12 -export -out localhost.pfx -inkey localhost.key -in localhost.crt", | |
| "tls.macos.sign": "sudo security -v add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain localhost.crt", | |
| "tls.ubuntu.install": "sudo apt install libnss3-tools --yes", | |
| "tls.ubuntu.store": "pk12util -d \"sql:${HOME}/.pki/nssdb\" -i localhost.pfx", | |
| "tls.ubuntu.approve": "certutil -d sql:${HOME}/.pki/nssdb -A -t \"P,,\" -n \"Development Certificate\" -i localhost.crt" | |
| } |
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/env bash --posix | |
| # -*- Coding: UTF-8 -*- # | |
| # -*- System: Linux -*- # | |
| # -*- Usage: *.* -*- # | |
| set -euo pipefail | |
| # | |
| # ======================================================================== |
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
| const FS = require("fs"); | |
| const Path = require("path"); | |
| const Query = require("querystring"); | |
| const Runtime = require("process"); | |
| const Process = require("child_process"); | |
| /// Signals: https://man7.org/linux/man-pages/man3/errno.3.html | |
| const CWD = Path.parse(Path.resolve(".")); | |
| const Package = Runtime.env.npm_package_configuration || Runtime.env.npm_package_json; |
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 re | |
| import shlex | |
| import shutil | |
| import subprocess | |
| import dataclasses | |
| from subprocess import Popen | |
| from typing import Union, Any | |
| @dataclasses.dataclass | |
| class Semantic: |