Skip to content
View satiridev's full-sized avatar

Block or report satiridev

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. 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
    3
    
                  
    4
    echo "collecting..."
    5
    aws s3 ls --recursive my-bucket > my-files-in-bucket.txt
  2. delete list of files from AWS S3 buc... delete list of files from AWS S3 bucket list result
    1
    #!/bin/bash
    2
    
                  
    3
    cat 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
  3. 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
  4. 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