+---------------------------+
| LVM Volumes |
+---------------------------+
| /dev/md1 (raid1) |
+-------------+-------------+
| /dev/sda2 | /dev/sdb2 |
+-------------+-------------+
I hereby claim:
- I am thanandorn on github.
- I am thanandorn (https://keybase.io/thanandorn) on keybase.
- I have a public key whose fingerprint is 1ABC A19C 5BD8 9511 C225 58BE 1C64 824C 3BDC 5C87
To claim this, I am signing this object:
Verifying my Blockstack ID is secured with the address 19joEE6ndXgi7oTQqdsuUEadMrQJQ7pFZx https://explorer.blockstack.org/address/19joEE6ndXgi7oTQqdsuUEadMrQJQ7pFZx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Requires: awscli (http://aws.amazon.com/cli/) | |
# Prints out a list of all security groups and their settings, just for quickly auditing it. | |
# Want to do this for all regions... | |
REGIONS=(`aws ec2 describe-regions --region us-west-1 --output text | grep "-" | awk -F $'\t' '{print $3}'`) | |
for REGION in ${REGIONS[*]}; do | |
echo "=> $REGION" | |
# Grab all the security group info for this region in one call. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Requires: awscli (http://aws.amazon.com/cli/) | |
# Prints out a list of all security groups and their settings, just for quickly auditing it. | |
# Want to do this for all regions... | |
REGIONS=(`aws ec2 describe-regions --region us-west-1 --output text | grep "-" | awk -F $'\t' '{print $3}'`) | |
for REGION in ${REGIONS[*]}; do | |
echo "=> $REGION" | |
# Grab all the security group info for this region in one call. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat << EOF >userlist.txt | |
John | |
William | |
James | |
Charles | |
George | |
Frank | |
Joseph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fmanagement.azure.com%2F' -H Metadata:true -s | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Delete All Failed/Evicted Pods | |
kubectl get pod -A --field-selector="status.phase==Failed" | |
kubectl delete pod -A --field-selector="status.phase==Failed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COLUMNS = [ 'a', 'b', 'c' ] | |
with beam.Pipeline(options=PipelineOptions()) as p: | |
csv_pc = ( p | 'ReadCSVFromGCS' >> beam.io.ReadFromText(file_pattern='./data/filename.csv.gz', compression_type='gzip') | |
| 'SplitData' >> beam.Map(lambda x: x.split(',')) | |
| 'ConvertToDict' >> beam.Map(lambda x: dict(zip(COLUMNS, x))) | |
| 'Print' >> beam.Map(print)) |