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
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"io/fs" | |
"os" | |
"path/filepath" | |
"strings" |
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
privateKey := "YOU-PRIVATE-KEY" | |
// atClaims := jwt.MapClaims{} | |
// atClaims["exp"] = time.Now().Add(time.Minute*15).UnixMilli() | |
// atClaims["aud"] = "Audience" // OPTIONAL AUDIENCE | |
atClaims := jwt.StandardClaims{ | |
IssuedAt: time.Now().Unix(), | |
ExpiresAt: time.Now().Add(30 * time.Second).unix(), | |
} |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func main() { | |
// A slice of sample websites | |
urls := []string{ |
https://specificity.keegan.st/ How to calculate specificity
Install ADB in windows and WLS Use OpenJDK 8
on windows:adb tcpip 5555
on wsl2: adb connect [ip device]:5555
ionic build
npx cap add android
ionic capacitor run android
# with_role bc-videocloud-prod arn:aws:iam::749779118921:role/dev-admin
function with_role() {
>&2 echo "Generating Temporary Session Creds..."
CREDS=$(aws sts assume-role \
--profile $1 \
--role-arn $2 \
--role-session-name "${USER}-session" \
--query Credentials \
https://www.terraform.io/docs/language/syntax/style.html
Variables Names and Resource Identifiers Use snake case. e.g.
variable "this_is_a_variable_name" {}
resource "aws_lambda_function" "replication_function" {}
NewerOlder