Skip to content

Instantly share code, notes, and snippets.

View Kento75's full-sized avatar
🏆

Kento Takano Kento75

🏆
View GitHub Profile
@Kento75
Kento75 / file0.txt
Last active January 4, 2019 21:53
【備忘録】Ansible応用編① EC2インスタンス作成から鍵認証ログインの自動化 ref: https://qiita.com/Kento75/items/5175460b669cf1d1a325
[ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no
private_key_file = /home/ec2-user/.ssh/dev-key.pem
@Kento75
Kento75 / file0.txt
Last active December 17, 2018 12:30
【AWSメモ④】aws-cli セットアップ(Amazon Linux 2) ref: https://qiita.com/Kento75/items/e1478fead92f70fb757e
$ curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
$ sudo python get-pip.py
@Kento75
Kento75 / file0.txt
Last active December 22, 2018 13:00
【備忘録】Ansible② Playbookとインベントリの書き方 ref: https://qiita.com/Kento75/items/a5e89c5034200310f98f
$ sudo amazon-linux-extras install -y ansible2
$ ansible --version
ansible 2.x.x
@Kento75
Kento75 / file1.txt
Last active September 11, 2019 09:08
【Pythonメモ】モジュールのプロファイリング ref: https://qiita.com/Kento75/items/8b72d64884d7072eece2
$ python -m cProfile -s cumulative julia_set.py
Length of x: 1000
Total elements: 1000000
calculate_z_serial_purepython took 23.838048934936523 seconds
36221995 function calls in 25.485 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
@Kento75
Kento75 / company_data.json
Last active September 11, 2019 09:05
【FireBase備忘録】サーバーレスSPA作成② ref: https://qiita.com/Kento75/items/87c2ca4093ba65304216
{
"companies":{
"company1":{"company_code": "A001","company_name": "A会社","address": "A地区","mail": "[email protected]"},
"company2":{"company_code": "B001","company_name": "B会社","address": "B地区","mail": "[email protected]"},
"company3":{"company_code": "C001","company_name": "C会社","address": "C地区","mail": "[email protected]"}
}
}
@Kento75
Kento75 / file0.sh
Last active March 8, 2019 10:10
【備忘録】Vimの基本的な使い方 ref: https://qiita.com/Kento75/items/3134b3a45fb9519ec48c
$ vim
@Kento75
Kento75 / file0.sh
Last active June 14, 2018 11:40
【FireBase備忘録】サーバーレスSPA作成① ref: https://qiita.com/Kento75/items/af8404c6ac469d8e0be1
$ npm install -g firebase-tools
@Kento75
Kento75 / hoge.py
Last active June 10, 2018 06:22
【Pythonメモ 】例外を呼び出し元に送信する方法 ref: https://qiita.com/Kento75/items/b0f43943d300d0ed9586
#!/usr/bin/python
# -*- Coding: utf-8 -*-
class Hoge(object):
def huga():
try:
raise TypeError('TYPE ERROR!')
except Exception as e:
@Kento75
Kento75 / file0.sh
Last active July 29, 2019 23:06
【Jenkins備忘録】Python自動テスト環境構築③jenkins準備編 ref: https://qiita.com/Kento75/items/2ecd1f3251c9c344ca69
$ sudo apt-get install -y openjdk-8-jdk