$ 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 hidden or 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
package main | |
import ( | |
"errors" | |
"fmt" | |
"go.uber.org/multierr" | |
) | |
func step1() error { |
This file contains hidden or 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】画像変換コマンドを作ろう | |
package main | |
import ( | |
"fmt" | |
"image/jpeg" | |
"image/png" | |
"log" | |
"os" | |
"path/filepath" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |