Rename all interface{}
to any
find . -type f -name "*.go" | xargs gofmt -w -r 'interface{} -> any'
package pdflib | |
import ( | |
"fmt" | |
"time" | |
"github.com/timemore/foundation/errors" | |
pdf "github.com/unidoc/unipdf/v3/model" | |
) |
Rename all interface{}
to any
find . -type f -name "*.go" | xargs gofmt -w -r 'interface{} -> any'
/* | |
https://jwt.io/introduction/ | |
In its compact form, JSON Web Tokens consist of three parts separated by dots (.), which are: | |
Header | |
Payload | |
Signature | |
Therefore, a JWT typically looks like the following. |
fatal: unable to access 'https://baseurl/username/repo_name.git/': SSL certificate problem: unable to get local issuer certificate
error: Could not fetch upstream
Use this command to make git not verify ssl certificate. If you want to unverify all git repo use --global
instead of --local
.
Run this inside your working directory.
git config --local http.sslVerify false
clientID = pm.variables.get("CLIENT_ID");
clientSecret = pm.variables.get("CLIENT_SECRET");
authStr = btoa(clientID +":"+ clientSecret);
pm.environment.set("BASIC_AUTHORIZATION_REQUEST",authStr);
apiKey = pm.variables.get("API-Key");
var ts = (new Date()).toISOString();
pm.environment.set("Timestamp", ts);
var jsonReq = JSON.parse(pm.request.body);
openssl rand -base64 32 | tr -d "=+/" | cut -c1-16 |
#!/bin/bash | |
# echo "data:$(xdg-mime query filetype 02_KTP.png);base64,$(base64 -w 0 02_KTP.png)" | |
filename= | |
usage() { | |
echo "usage: base64encode [[-f file ] | [-h]]" | |
} |
exiftool -r '-FileName<${model;}_${createdate#;DateFmt("%Y-%m-%d_%H%M%S")}%-c.$FileTypeExtension' '-Directory<${model;}/${createDate#;DateFmt("%Y/%m")}' . | |
File format | |
-d %Y-%m-%d_%H%M%S%%-c.%%e | |
Date format for folder | |
-d %Y/%m/%d |