Skip to content

Instantly share code, notes, and snippets.

View yteraoka's full-sized avatar

Yoshinori Teraoka yteraoka

View GitHub Profile
#!/bin/bash
termination_policy="OldestLaunchTemplate OldestInstance"
info(){
echo -e "\033[32m$(date +%Y-%m-%dT%H:%M:%S) $*\033[m"
}
usage(){
if [ $# -ge 1 ] ; then
@yteraoka
yteraoka / main.go
Created November 1, 2022 09:14
golang.org/x/crypto/acme を使って証明書を発行する例
package main
import (
"bufio"
"context"
"crypto"
"crypto/ecdsa"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
@yteraoka
yteraoka / .aliases
Created February 29, 2024 15:40
dotfiles
alias cp="cp -i"
alias rm="rm -i"
alias mv="mv -i"
alias k="kubectl"
alias kd="kubectl describe"
alias g="git"
alias t="terraform"
alias tf="terraform"
alias tfdoc="terraform-docs"
alias awsid="aws sts get-caller-identity"