import json import pathlib
import boto3
def download_s3_obj_versions(_bucket, _key_prefix, _filename, is_save=True): client = boto3.client("s3")
_key = (pathlib.Path(_key_prefix) / _filename).as_posix()
import json import pathlib
import boto3
def download_s3_obj_versions(_bucket, _key_prefix, _filename, is_save=True): client = boto3.client("s3")
_key = (pathlib.Path(_key_prefix) / _filename).as_posix()
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: imagecleanupconfig | |
namespace: default | |
labels: | |
component: imagecleanup | |
data: | |
# removes all images unused by a running container | |
cronjobs: 0 0 * * * crictl rmi --prune 2>&1 |
import boto3 | |
identity_pool_id = "us-east-1:xxxxx" | |
dataset_name = "dataset-name-xxx" | |
client_sync = boto3.client("cognito-sync") | |
client_identity = boto3.client("cognito-identity") | |
def get_dataset_detail(identity_id): |
from requests.adapters import HTTPAdapter, Retry | |
from requests import Session | |
retries = Retry( | |
total=5, backoff_factor=1, status_forcelist=[502, 503, 504] | |
) | |
session = Session() # reuse tcp connection | |
session.mount("http://", HTTPAdapter(max_retries=retries)) | |
session.mount("https://", HTTPAdapter(max_retries=retries)) |
驱动下载链接: https://www.nvidia.com/Download/index.aspx?lang=en-us
注:
NVIDIA-Linux-x86_64-550.78.run
之后,chmod +x *.run
,然后运行安装就可以package main | |
import ( | |
"bytes" | |
"context" | |
"crypto/ed25519" | |
"encoding/hex" | |
"encoding/json" | |
"flag" | |
"fmt" |
package main | |
import ( | |
"fmt" | |
"github.com/ethereum/go-ethereum/accounts" | |
"github.com/ethereum/go-ethereum/common/hexutil" | |
"github.com/ethereum/go-ethereum/crypto" | |
) |
package main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
) |