Mediado.go #2 lunarxlark
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
[ | |
{ | |
"key": "shift+f7", | |
"command": "editor.action.diffReview.prev", | |
"when": "isInDiffEditor" | |
}, | |
{ | |
"key": "shift+f7", | |
"command": "-editor.action.diffReview.prev", | |
"when": "isInDiffEditor" |
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
buildscript { | |
dependencies { | |
classpath "org.flywaydb.flyway-gradle-plugin:3.2.1" | |
} | |
} | |
apply plugin: 'org.flywaydb.flyway' | |
flyway { | |
url='jdbc:mysql://{{cluster-endpoint}}:{{port}}/{{database-name}}' |
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
# awsenv | |
function setaws() { | |
[[ $# -gt 0 ]] && eval "$(~/.local/bin/awsenv $@)"; | |
export TF_VAR_aws_access_key=${AWS_ACCESS_KEY_ID} | |
export TF_VAR_aws_secret_key=${AWS_SECRET_ACCESS_KEY} | |
export TF_VAR_aws_region=${AWS_DEFAULT_REGION} | |
exec $SHELL -l | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Feeder - RSS Feed Reader</title> | |
</head> | |
<body> | |
<outline title="Amazon Blog" text="Amazon Blog"> | |
<outline text="日本語ブログ" title="日本語ブログ" type="rss" xmlUrl="https://aws.amazon.com/jp/new/feed/" htmlUrl="https://aws.amazon.com/jp/new/" rssfr-favicon="https://icons.feeder.co/amazon.com"/> | |
<outline text="Info RDS update" title="Info RDS update" type="rss" xmlUrl="https://forums.aws.amazon.com/rss/rssmessages.jspa?forumID=60" htmlUrl="https://forums.aws.amazon.com" rssfr-favicon="https://icons.feeder.co/amazon.com"/> | |
<outline text="Amazon Web Services ブログ" title="Amazon Web Services ブログ" type="rss" xmlUrl="https://aws.amazon.com/jp/blogs/news/feed" htmlUrl="https://aws.amazon.com/jp/blogs/news/" rssfr-favicon="https://icons.feeder.co/amazon.com" rssfr-updateInterval="600000"/> |
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 | |
# Tags.Name取得 | |
export NAME_SSM2EC2=$(aws ec2 describe-instances \ | |
--query "Reservations[].Instances[].Tags[?contains(Key, \`Name\`)].Value[]" | \ | |
sed -e 's/[]" ,\[]//g' | \ | |
sed -e "/^$/d" | peco) | |
# instance-id取得 | |
export ID_SSM2EC2=$(aws ec2 describe-instances --query "Reservations[].Instances[?contains(Tags[].Value, \`${NAME_SSM2EC2}\`)].InstanceId[]" | sed -e 's/[]" ,\[]//g' | sed -e '/^$/d') |
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
if [ -e "~/git-completion.bash" ];then | |
source ~/git-completion.bash | |
fi | |
if [ -e "~/git-prompt.sh" ];then | |
source ~/git-prompt.sh | |
fi | |
PS1="\[\e[1;36m\]\u\[\e[0m\]" | |
PS1+="\[\e[1;31m\]@\[\e[0m\]" |
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
GARBAGE=`docker images | grep "^$IMG " | awk '{ print $3 }'` | |
for CONTAINER in $GARBAGE | |
do | |
docker ps -a | grep $CONTAINER | awk '{ print $1 }' | xargs docker rm | |
done |