du -sh $(go env GOCACHE)
find $(go env GOCACHE) -type f | xargs du -s | sort -n
for i in $(find example-sources -type d -depth 1) | |
do | |
echo $i | |
pushd $i | |
url=$(git remote get-url $(git remote)) | |
echo $url | |
popd | |
git submodule add $url ./$i | |
done |
requirements.txt
amazon.titan-text-express-v1
model for accesspython pdf_summary.py
python pdf_summary.py
Running on local URL: http://127.0.0.1:7860
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, |
# Reference: https://sharats.me/posts/shell-script-best-practices/ | |
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
if [[ -n "${TRACE-}" ]]; then | |
set -o xtrace | |
fi |
#!/usr/bin/env bash | |
### | |
# This script is used to analyze the dump files generated by the Fission CI. | |
### | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
if [[ -n "${TRACE-}" ]]; then | |
set -o xtrace | |
fi |
I have created a local Kubernetes cluster with kind. Following are changes you need to get metric-server running on Kind.
Deploy latest metric-server release.
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.5.0/components.yaml
Within existing arguments to metric-server container, you need to add argument --kubelet-insecure-tls
.
Alice and Bob have accounts at Bankgroup. Each account has 0 or more dollars in it.
Bankgroup wants to add a new “wire” feature, where any user can transfer money to any other user. This feature has the following requirements:
Each wire must be between two different people in the bank and wire at least one dollar.
If a wire is successful, the value of the wire is deducted from the sender account and added to the receiver account.
.gitconfig
url shortcut[url "[email protected]:infracloudio/"]
insteadOf = inf:
import logging | |
import boto3 | |
import dateutil | |
logger = logging.getLogger() | |
logger.addHandler(logging.StreamHandler()) # Writes to console | |
logger.setLevel(logging.INFO) | |
def create_sts_client(aws_access_key_id=None, |