Skip to content

Instantly share code, notes, and snippets.

View shimo164's full-sized avatar

shimo164

  • Osaka, Japan
View GitHub Profile
@shimo164
shimo164 / test.rst
Last active August 3, 2019 01:00
test_gist

これはテスト

表題のテスト

rstとmdの違い

### 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] ){
# 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)
@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 覚醒剤
@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 | | |
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 / 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
@shimo164
shimo164 / DigiMouseWiggler.iso
Created September 2, 2020 21:00
DigiSpark ATTINY85 Micro USB to prevent PC going sleep
// DigiMouse Mouse Wiggler
// Originally wrote by Jeff White ([email protected])
// MIT License
// to write
// 1. Start without inserting Digispark.
// 2. When you see "Please plug in the device ... " message, insert Degispark.
// setting: set "mode" 0 or 1
// see http://digistump.com/wiki/digispark/tutorials/modelbi2c
@shimo164
shimo164 / cron_git_arbitray_file.sh
Last active February 20, 2022 10:22
Auto back up of any files to Github
#!/bin/bash
# Back up specific files on any directories.
# Using cron job, check update for each file.
# Up-to-date files are copied to local repository
# and pushed to github.
#
# Usage:
# $ bash ./cron_git_arbitray_file.sh
# cron example. execute at every 4am:
@shimo164
shimo164 / mv_lambda.sh
Last active August 3, 2022 05:40
Move AWS Lambda function with another name, region.
#!/bin/bash
# Rename Lambda by moviong function to another name.
# Moving to another region is also possible.
# Param: role_lambda_execute
# See. https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-awscli.html
# accountID
# function_name_orig
# region_orig
# function_name_orig