Skip to content

Instantly share code, notes, and snippets.

View shimo164's full-sized avatar

shimo164

  • Osaka, Japan
View GitHub Profile
@shimo164
shimo164 / aws-qwiklabs-list.csv
Last active September 2, 2023 06:37
DEPRECATED: aws qwiklabs are no longer available.
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
Name,Type,Level,Duration,Cost,Lang,Description
Security on AWS,Quest,,27 minutes,Free,,"This quest is designed to teach you how to apply AWS Identity and Access Management, in concert with several other AWS Services, to address real-world application and service security management scenarios."
Serverless Web Apps using Amazon DynamoDB,Quest,,5 hours,3 Credits,,"Serverless architectures allow you to build and run applications and services without needing to provision, manage, and scale infrastructure. This quest will show how to design, build, and deploy interactive serverless web applications, using a simple HTML/JavaScript web interface which uses Amazon API Gateway calls to send requests to AWS Lambda backends that query Amazon DynamoDB data."
Alexa Skills Development,Quest,,4 hours,30 Credits,,"In this Quest, you will learn how to create Alexa skills that respond to voice commands and which can be used on the Amazon Echo, Dot, and Tap devices. You will create back-end functions in AWS Lambda, and then conn
Security on AWS,"This quest is designed to teach you how to apply AWS Identity and Access Management, in concert with several other AWS Services, to address real-world application and service security management scenarios.",27 minutes,Free,,Quest,,
Serverless Web Apps using Amazon DynamoDB,"Serverless architectures allow you to build and run applications and services without needing to provision, manage, and scale infrastructure. This quest will show how to design, build, and deploy interactive serverless web applications, using a simple HTML/JavaScript web interface which uses Amazon API Gateway calls to send requests to AWS Lambda backends that query Amazon DynamoDB data.",5 hours,3 Credits,,Quest,,
Alexa Skills Development,"In this Quest, you will learn how to create Alexa skills that respond to voice commands and which can be used on the Amazon Echo, Dot, and Tap devices. You will create back-end functions in AWS Lambda, and then connect them with voice response logic using the Alexa Skills Kit. You will
@shimo164
shimo164 / tmux.rst
Last active September 30, 2020 22:33
cheetsheet for tmux command
  Client Window Pane
Open
$tmux (new)
$tmux a (attached)
$tmux a -t num
C-b c
C-b "
C-b %
| | $tmux a -t num | | |
@shimo164
shimo164 / drug_arrest.csv
Last active March 8, 2026 08:22
薬物で芸能人が逮捕されたリスト
名前 年月日 曜日 容疑 政治的な批判の対象があったか
尾崎豊 1987-12-22 覚醒剤
今井寿(BUCK-TICK) 1989-04-21
勝新太郎 1990-01-01
ミッキー吉野(ゴダイゴ) 1992-06-01 覚醒剤
江夏豊 1993-03-03 覚醒剤
長渕剛 1995-01-24 大麻
sakura(元L'Arc〜en〜Ciel) 1997-02-24 覚醒剤
翔(横浜銀蝿) 1997-02-27 覚醒剤
# Windowsで、コマンドラインからmecabは動くがpython,jupyterで文字化けする対策
import subprocess
text = "すもももももももものうち"
with open("tmp_input.txt", "w") as f:
f.write(text)
out = subprocess.check_output(r"mecab tmp_input.txt -o tmp_output.txt", shell=True)
### Parameter $path
### if recursively use: Get-ChildItem -r
### file size is in MB
$path = '.\'
$items = @(Get-ChildItem $path)
$Output =
foreach ($item in $items) {
if ( $item -isnot [System.IO.DirectoryInfo] ){
@shimo164
shimo164 / test.rst
Last active August 3, 2019 01:00
test_gist

これはテスト

表題のテスト

rstとmdの違い

import re
from io import StringIO
from pdfminer.converter import TextConverter
from pdfminer.layout import LAParams
from pdfminer.pdfinterp import PDFPageInterpreter, PDFResourceManager
from pdfminer.pdfpage import PDFPage
space = re.compile(r"[  ]+")
@shimo164
shimo164 / resize_image_with_Python_PIL.py
Last active February 17, 2021 03:01
change file size, output size of image files
#!/usr/bin/python
"""Resize image simply with PIL
Usage:
$ python resize_image.py filename [mode]
Output:
"resize_ + filename" is created.
Parameters
@shimo164
shimo164 / simple_timer.py
Created March 18, 2019 10:17
Timer: wait until set_time
import datetime
import time
set_time = datetime.datetime(2019, 12, 31, 19, 0)
now_time = datetime.datetime.now()
delta = set_time - now_time
sec_in_day = (delta.total_seconds() - delta.days*24*60*60)
hours = int(sec_in_day // (60*60))
minutes = int((sec_in_day - hours*(60*60)) // 60)
seconds = int(sec_in_day - minutes*60 - hours*60*60)