Skip to content

Instantly share code, notes, and snippets.

View legnoh's full-sized avatar
🏠
WFH

Ryoma Kai legnoh

🏠
WFH
View GitHub Profile
@uru2
uru2 / scan_ch_mirakc_docker.sh
Last active June 5, 2024 05:06
docker mirakcコンテナーを利用したmirakc用チャンネルスキャン
#!/bin/sh
# mirakc channel scan (using mirakc docker container image)
# by uru (https://twitter.com/uru_2)
#
# require:
# docker
# jq
set -eu
export LANG=C.UTF-8
@drewkerr
drewkerr / get-focus-mode.js
Last active June 30, 2024 19:33
Read the current Focus mode on macOS Monterey (12.0+) using JavaScript for Automation (JXA)
const app = Application.currentApplication()
app.includeStandardAdditions = true
function getJSON(path) {
const fullPath = path.replace(/^~/, app.pathTo('home folder'))
const contents = app.read(fullPath)
return JSON.parse(contents)
}
function run() {