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 upstreamUse 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 falsePrequisite
Set this Environment Variable before hand
Put this script in Pre-Request script, in latest postman app pre-request script can be set by directory or collection.
| 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 |