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 line 5-11 and 12 | |
sed -i.bak -e '5,10d;12d' file | |
# dumps out a line suitable for use in .ssh/authorized_keys | |
ssh-keygen -y -f .ssh/foo.pem | |
# what package owns this file? | |
dpkg-query -S /bin/bash |
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
select * from products_golden | |
where binary id_string != binary lower(id_string); | |
select * from product_variants | |
where binary id_string != binary lower(id_string); |
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
aws elasticache describe-replication-groups | jq -r '.ReplicationGroups[] | | |
select(.ReplicationGroupId=="redis-prod").NodeGroups[0].PrimaryEndpoint | | |
.Address,.Port' | paste -sd : - | |
redis-prod.foobar.zz.0001.usw2.cache.amazonaws.com:6379 |
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
# Each `runN` file is a column of numbers. | |
# `idx` is set to the length of the shortest run | |
idx <- 170 | |
r1 <- read.table('run1', colClasses="numeric")$V1[1:idx] | |
r2 <- read.table('run2', colClasses="numeric")$V1[1:idx] | |
r3 <- read.table('run3', colClasses="numeric")$V1[1:idx] | |
df <- data.frame(r1, r2, r3) |