home.social

#commandlineexcellence — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #commandlineexcellence, aggregated by home.social.

fetched live
  1. pretty happy w/this shell oneliner to get the deets on the unique kms keys used in the last 100k decryptions

    aws cloudtrail lookup-events --lookup-attributes "AttributeKey=EventName,AttributeValue=Decrypt" --region us-east-1 --max-results 100000 | jq -r '.Events[].CloudTrailEvent' | jq -r | grep '"ARN"' | sed 's!.*key/!!;s!"!!' | sort -u | xargs -n1 aws kms describe-key --key-id | grep -i 'keyid\|creation\|manager\|descr' | sed 's!.*"\(.*\)":!\1!;s!",!"!;s!KeyId!\n\nKeyId!'

    #unix #shell #aws #awscli #bash #commandline #unixmagic #commandlineexcellence #oneliner #1liner

  2. pretty happy w/this shell oneliner to get the deets on the unique kms keys used in the last 100k decryptions

    aws cloudtrail lookup-events --lookup-attributes "AttributeKey=EventName,AttributeValue=Decrypt" --region us-east-1 --max-results 100000 | jq -r '.Events[].CloudTrailEvent' | jq -r | grep '"ARN"' | sed 's!.*key/!!;s!"!!' | sort -u | xargs -n1 aws kms describe-key --key-id | grep -i 'keyid\|creation\|manager\|descr' | sed 's!.*"\(.*\)":!\1!;s!",!"!;s!KeyId!\n\nKeyId!'

    #unix #shell #aws #awscli #bash #commandline #unixmagic #commandlineexcellence #oneliner #1liner

  3. pretty happy w/this shell oneliner to get the deets on the unique kms keys used in the last 100k decryptions

    aws cloudtrail lookup-events --lookup-attributes "AttributeKey=EventName,AttributeValue=Decrypt" --region us-east-1 --max-results 100000 | jq -r '.Events[].CloudTrailEvent' | jq -r | grep '"ARN"' | sed 's!.*key/!!;s!"!!' | sort -u | xargs -n1 aws kms describe-key --key-id | grep -i 'keyid\|creation\|manager\|descr' | sed 's!.*"\(.*\)":!\1!;s!",!"!;s!KeyId!\n\nKeyId!'

    #unix #shell #aws #awscli #bash #commandline #unixmagic #commandlineexcellence #oneliner #1liner

  4. Today is an interesting day in terms of crashes. I just watched somebody crash both ls and rm because their directory had too many files in it. To be clear: the crashes happened on subsets of the files in the directory. 😳

    Maybe I've been lucky? I've never seen that before.

    And I once had a conversation with a colleague that ended in us crafting an "rm -r *" (in disguise) that deleted all of his stuff.

    #devlife #unix #linux #wtf #files #commandlineexcellence #commandline #operatingsystems

  5. Today is an interesting day in terms of crashes. I just watched somebody crash both ls and rm because their directory had too many files in it. To be clear: the crashes happened on subsets of the files in the directory. 😳

    Maybe I've been lucky? I've never seen that before.

    And I once had a conversation with a colleague that ended in us crafting an "rm -r *" (in disguise) that deleted all of his stuff.

    #devlife #unix #linux #wtf #files #commandlineexcellence #commandline #operatingsystems

  6. Today is an interesting day in terms of crashes. I just watched somebody crash both ls and rm because their directory had too many files in it. To be clear: the crashes happened on subsets of the files in the directory. 😳

    Maybe I've been lucky? I've never seen that before.

    And I once had a conversation with a colleague that ended in us crafting an "rm -r *" (in disguise) that deleted all of his stuff.

    #devlife #unix #linux #wtf #files #commandlineexcellence #commandline #operatingsystems

  7. Today is an interesting day in terms of crashes. I just watched somebody crash both ls and rm because their directory had too many files in it. To be clear: the crashes happened on subsets of the files in the directory. 😳

    Maybe I've been lucky? I've never seen that before.

    And I once had a conversation with a colleague that ended in us crafting an "rm -r *" (in disguise) that deleted all of his stuff.

    #devlife #unix #linux #wtf #files #commandlineexcellence #commandline #operatingsystems

  8. Today is an interesting day in terms of crashes. I just watched somebody crash both ls and rm because their directory had too many files in it. To be clear: the crashes happened on subsets of the files in the directory. 😳

    Maybe I've been lucky? I've never seen that before.

    And I once had a conversation with a colleague that ended in us crafting an "rm -r *" (in disguise) that deleted all of his stuff.

    #devlife #unix #linux #wtf #files #commandlineexcellence #commandline #operatingsystems