Skip to content

Instantly share code, notes, and snippets.

View bokuo-okubo's full-sized avatar
🏠
Working from home

Yohei Okubo bokuo-okubo

🏠
Working from home
  • eva
  • Tokyo / Shizuoka
View GitHub Profile
@bokuo-okubo
bokuo-okubo / fx13-ubuntu24-setup.sh
Last active August 15, 2025 10:10
fx13-ubuntu24-setup.sh
#!/usr/bin/env bash
# Flow X13 (2021, GV301) on Ubuntu Server 24.04 → 安定GUI環境化スクリプト
# - HWE kernel / firmware 更新
# - NVIDIA プロプライエタリ導入(nouveau無効化)
# - 最小デスクトップ(ubuntu-desktop-minimal)
# - iGPU優先運用(発熱低減)
# - 省電力チューニング(powertop --auto-tune 常時化)
# - 任意: ASUS asusctl/supergfxctl(BUILD_ASUS_TOOLS=1でビルド導入)
set -euo pipefail
@bokuo-okubo
bokuo-okubo / machine.js
Last active March 30, 2021 06:35
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@bokuo-okubo
bokuo-okubo / machine.js
Created March 29, 2021 12:00
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@bokuo-okubo
bokuo-okubo / machine.js
Last active March 29, 2021 12:00
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions

subscribe non default features

/github subscribe {user}/{repo} reviews comments branches commits:all
@bokuo-okubo
bokuo-okubo / README.md
Last active October 23, 2017 13:26
HammerSpoonConfig

my hammerspoon confing

require 'date'
require 'pathname'
ARTICLE_PATH = 'source/contents/articles/'
STUB_START_DATE = '2018-01-01'
namespace :stub do
@article_path = Pathname.pwd + Pathname.new(ARTICLE_PATH)
class InvalidSemanticVersionError < StandardError; end
class SemanticVersion
def initialize(sem_str)
raise InvalidSemanticVersionError unless _valid_schema? sem_str
@version_ary = sem_str.split('.').freeze
end
def version_ary