Pinned Loading
-
Collect All Files in A AWS S3 Bucket
Collect All Files in A AWS S3 Bucket 1#!/bin/bash
2# produce list of all files in buckets
34echo "collecting..."
5aws s3 ls --recursive my-bucket > my-files-in-bucket.txt
-
delete list of files from AWS S3 buc...
delete list of files from AWS S3 bucket list result 1#!/bin/bash
23cat my-target-files-in-s3.txt | awk '{print $4}' | while read x; do aws s3 rm "s3://my-bucket-name/$x"; done > my-delete-result.txt
-
Example of using Apache Bench (ab) t...
Example of using Apache Bench (ab) to POST JSON to an API 1# post_loc.txt contains the json you want to post
2# -p means to POST it
3# -H adds an Auth header (could be Basic or Token)
4# -T sets the Content-Type
5# -c is concurrent clients
-
krestart.sh
krestart.sh 1#!/bin/bash
2# tested in .zshrc
3#
4# kubectl scale deploy name-of-deployment --replicas=0
5# kubectl scale deploy name-of-deployment --replicas=1
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.