I hereby claim:
- I am kenzo0107 on github.
- I am kenzo0107 (https://keybase.io/kenzo0107) on keybase.
- I have a public key ASDS2szFSmiEIGa57wzFOkHyCYi3cmkSgMx8TKVpa2HBDQo
To claim this, I am signing this object:
import click | |
import json | |
import math | |
import os | |
import requests | |
import sys | |
import time | |
from urllib.parse import urlencode | |
#!/bin/sh | |
curl -X POST \ | |
-H "Authorization: Bearer $PAT" \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
"query": "mutation { changeUserStatus(input: { emoji: \"\", message: \"\" }) { status { emoji message } } }" | |
}' \ | |
https://api.github.com/graphql |
#!/bin/bash | |
profiles=( | |
<profile names in ~/.aws/credentials> | |
) | |
for profile in ${profiles[@]}; do | |
awsume $profile --session-name "kenzo.tanaka" --output-profile tmp > /dev/null 2>&1 | |
account_id=$(aws sts get-caller-identity --profile tmp --query 'Account' --output text) | |
if [ -z "$account_id" ]; then |
aws ec2 describe-instances --query 'Reservations[*].Instances[*].Tags[?Key == `Name`].Value' --output text |
$ sw_vers | |
ProductName: Mac OS X | |
ProductVersion: 10.15.6 | |
BuildVersion: 19G2021 | |
``` | |
$ ansible all -m ping | |
FAILED! => {"msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program"} |
package awsapi | |
import ( | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/service/ssm" | |
"github.com/aws/aws-sdk-go/service/ssm/ssmiface" | |
) | |
// SSMIface : - | |
type SSMIface interface { |
set -i -e "s|jessie|stretch|g" /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get install gcc-6 g++-6 | |
// link gcc 6 | |
cd /usr/bin | |
$ sudo rm gcc g++ | |
$ sudo ln -s gcc-6 gcc | |
$ sudo ln -s g++-6 g++ |
locals { | |
a_ips = ["93.184.216.34/32"] # dummy A company ip | |
} | |
# for log | |
resource "aws_s3_bucket" "logs" { | |
bucket = "hoge.logs" | |
acl = "log-delivery-write" | |
versioning { |
package main | |
import ( | |
"fmt" | |
"github.com/go-playground/validator" | |
) | |
type User struct { | |
FirstName string `validate:"required"` //必須 |
I hereby claim:
To claim this, I am signing this object: