$ git clone https://github.com/anyenv/anyenv ~/.anyenv
$ echo 'eval "$(anyenv init)"' >> ~/.your_profile
// reload your configuraiton of shell
$ 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
//【TRY】catコマンドを作ろう | |
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
) |
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
# macOS | |
OS_TYPE=darwin | |
# Linux | |
OS_TYPE=linux | |
# Helm version | |
VERSION=2.9.1 | |
cd /tmp | |
curl -sL https://storage.googleapis.com/kubernetes-helm/helm-v${VERSION}-${OS_TYPE}-amd64.tar.gz \ |
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
wget https://gist.githubusercontent.com/tbutts/6abf7fb5b948c066bf180922fb37adcf/raw/198f744327a9924febdd11677f044a4ecd3f3c96/tmux-migrate-options.py | |
cp ~/.tmux.conf ~/.tmux.conf.org | |
python tmux-migrate-options.py ~/.tmux.conf.org > ~/.tmux.conf | |
diff ~/.tmux.conf.org ~/.tmux.conf |
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 | |
# region | |
export AWS_DEFAULT_REGION=ap-northeast-1 | |
# CloudWatchLogs settings | |
LogGroupName="Test" | |
LogStreamName="App1" | |
# message put to CloudWatchLogs |
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
sudo yum install python3 -y | |
sudo pip3 install awscli --upgrade |
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
# export private keys | |
gpg --export-secret-keys --armor > gpg-private.keys | |
# import private keys | |
gpg --import gpg-private.keys | |
# export public keys | |
gpg --export --armor > gpg-public.keys | |
# import public keys |
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/sh | |
PROFILE=hoge | |
regions=$(aws ec2 describe-regions | jq -r '.Regions[].RegionName') | |
for region in $(echo ${regions}) | |
do | |
echo "region: $region" | |
detector_id=$(aws --profile ${PROFILE} \ |
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
<details> | |
<summary>title</summary> | |
<pre> | |
<code> | |
hoge | |
moge | |
fizz | |
buzz | |
</code> | |
</pre> |