Skip to content

Instantly share code, notes, and snippets.

View jami-i's full-sized avatar

Osamu Ishikawa jami-i

View GitHub Profile
@jami-i
jami-i / install-windows.md
Last active February 17, 2022 15:37
Windows 11 インストール用USB作成手順

Windowsインストール用USBディスク作成手順

Windows 10 の特定バージョンからインストール用WIMのファイルサイズがexFATでサポートされている4GBより大きくなってしまった。

そのため、ddコマンドで書き込むだけでは正しくインストールできるディスクとならない。 (bootはできるが、「お使いのPCに必要なメディアドライバーがありません。」というエラーが発生し、インストールできない)

そのためインストール用WIMを4GB以下のサイズとなるよう分割する手順を記しておく。

必要なもの

class Scratch {
public static void main(String[] args) {
Bar defined = Bar.of("1");
Bar unknown = Bar.of("unknown");
assert defined.getValue().equals("1");
assert unknown.getValue().equals("unknown");
}
}
let s = document.createElement("script");
s.src = "https://html2canvas.hertzen.com/dist/html2canvas.js";
document.body.append(s);
@jami-i
jami-i / compare.md
Last active September 18, 2018 01:19
@jami-i
jami-i / README.md
Last active May 8, 2018 05:43
横須賀線 武蔵小杉駅 平日上り 時刻表

横須賀線 武蔵小杉駅 平日上り 時刻表

横須賀線は11両と11+4両の編成がある。 どの時間にどちらが来るかまとめた。

時刻表はえきから時刻表を、 編成表は"Cielo Estrellado" Stationを参照

@jami-i
jami-i / keybase.md
Created October 31, 2017 07:52
keybase.md

Keybase proof

I hereby claim:

  • I am jami-i on github.
  • I am jami (https://keybase.io/jami) on keybase.
  • I have a public key whose fingerprint is 8C8C 2A13 555C BB6B C845 392A A53F 4B98 C43C F8F4

To claim this, I am signing this object:

@jami-i
jami-i / rxjs-delay.js
Last active July 5, 2017 05:40
Observable.from() の要素それぞれを遅延させて送出する
import {Observable} from 'rxjs';
Observable.from([1,2,3])
.concatMap(x => Observable.of(x).delay(1000))
.timeInterval()
.take(3)
.subscribe(console.log)
console.log("started")
#!/bin/bash
versions_json="/tmp/lambda-versions.json"
for function in $(aws lambda list-functions | jq -r ".Functions[].FunctionName" | grep ppap-api-)
do
echo "${function}"
aws lambda list-versions-by-function --function-name "${function}" > "${versions_json}"
while :
do
#!/bin/bash
prefix=foovar
aws apigateway get-rest-apis | jq "(.items | map(select(.name | startswith(\"${prefix}-\"))))"
# extract ids only
aws apigateway get-rest-apis | jq "(.items | map(select(.name | startswith(\"${prefix}-\")))) | .[].id"
div.cloudHeader-inner-grn > ul[style] {
border: 0 !important;
background: none !important;
color: white !important;
overflow: hidden;
font: inherit !important;
text-align: center;
}