Skip to content

Instantly share code, notes, and snippets.

View sohsatoh's full-sized avatar

Soh Satoh sohsatoh

View GitHub Profile
export IMPACTOR_APPLEID_USERNAME=YOURAPPLEID
export IMPACTOR_APPLEID_PASSWORD=YOURPASSWORD
open -a /Applications/Impactor.app/Contents/MacOS/Impactor
@sohsatoh
sohsatoh / mornin-close.sh
Created January 24, 2019 20:25
mornin'でカーテンを閉じるシェルスクリプト - Fire TV Stick用 (画面サイズによって要変更)
adb start-server
adb connect <ip address>
adb shell am start -n jp.co.robit.morninplus/jp.co.robit.chicken2.frontend.main.SplashActivity
sleep 15s
adb shell input touchscreen tap 1000 500
sleep 1s
adb shell input keyevent 3
sleep 1s
adb kill-server
exit
@sohsatoh
sohsatoh / amazon-history.js
Last active February 3, 2019 07:30 — forked from yociya/amazon-history.js
Amazonの注文履歴を年毎に集計して出力します 利用額 / 注文件数 / 最高額(1注文での) / アラートバージョン
//The MIT License (MIT)
//Copyright (c) 2014-present Tristan Edwards
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
//The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Fixes</key>
<dict>
@sohsatoh
sohsatoh / config.plist
Created June 15, 2019 15:38
config.plist for hackintosh (i7-9700K, Vega56) [macOS Mojave 10.14.5]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Fixes</key>
<dict>
@sohsatoh
sohsatoh / EDID
Created August 6, 2019 18:56
EDID
Extracted contents:
header: 00 ff ff ff ff ff ff 00
serial number: 1e 6d 09 5b 09 9d 04 00 01 1d
version: 01 04
basic params: b5 3c 22 78 9f
chroma info: 30 35 a7 55 4e a3 26 0f 50 54
established: 21 08 00
standard: 71 40 81 80 81 c0 a9 c0 d1 c0 81 00 01 01 01 01
descriptor 1: 4d d0 00 a0 f0 70 3e 80 30 20 65 0c 58 54 21 00 00 1a
descriptor 2: 28 68 00 a0 f0 70 3e 80 08 90 65 0c 58 54 21 00 00 1a
SpringBoard PID is 2516
[Error] initing exception with build: count=build_commit_count: override me! sha=build_commit_sha: override me!
[Error] initing exception with build: count=7 sha=3efed152b1ccdcec3a9950c0eaec273e58c04128
[Error] initing exception with build: count=build_commit_count: override me! sha=build_commit_sha: override me!
[Error] initing exception with build: count=7 sha=3efed152b1ccdcec3a9950c0eaec273e58c04128
[Error] Double exception! Error in line=222
libc++abi.dylib: terminating with uncaught exception of type tihmstar::TKexception: std::exception
@sohsatoh
sohsatoh / unipass.js
Created April 29, 2020 13:37
UNIVERSAL PASSPORTから、再履修科目の検索、評定一覧が表示できるスクリプト
document.body.appendChild((function(){
var jq = document.createElement("script");
jq.src = '//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js';
return jq;
})());
if(confirm('OKで評定検索、キャンセルで再履修科目の検索')){
searchGrade();
}else{
searchRepeat();
@sohsatoh
sohsatoh / gist:f6bbcc3483cfdf6088f4251e9ff2613b
Created April 30, 2020 05:56
Gmailからヨドバシカメラでの購入金額合計を取得、スプレッドシートに記入するGoogle Apps Script
We couldn’t find that file to show.
@sohsatoh
sohsatoh / YodoGet.js
Last active April 30, 2020 06:02
Gmailからヨドバシカメラでの購入金額合計を取得、スプレッドシートに記入するGoogle Apps Script
function getTotalOnYodobashi() {
//ベースコード:https://note.com/ky120930/n/n97cd39a4ad2e
//スプレッドシートの内容をリセット
var sheet = SpreadsheetApp.getActiveSheet().clear();
// Gmailの検索条件
var subject = 'ヨドバシ・ドット・コム:ご注文商品出荷のお知らせ';