Skip to content

Instantly share code, notes, and snippets.

@tohutohu
tohutohu / private-isu.yaml
Last active September 18, 2023 23:44
private-isu素振り用Cloud Formation 東京リージョンで作成してください
View private-isu.yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: private-isu template
Parameters:
KeyPairName:
Description: "Amazon EC2 Key Pair"
Type: AWS::EC2::KeyPair::KeyName
GitHubUsername:
Description: "GitHub Username for SSH public key"
Type: String
@tohutohu
tohutohu / bashrc
Last active November 15, 2019 07:30
View bashrc
attach() {
name=$1
if [ "${name:0:1}" = "r" ]; then
docker exec -it --user 1000 $name /bin/bash
else
lxc exec $name /bin/bash
fi
}
add_nic() {
View po.js
const po = 0
const vm = new Vue()