Skip to content

Instantly share code, notes, and snippets.

View mohemohe's full-sized avatar
🍣
さーもん

mohemohe mohemohe

🍣
さーもん
View GitHub Profile
@mohemohe
mohemohe / claude-yolo
Last active August 20, 2025 18:39
𝒀𝑶𝑳𝑶
#!/bin/bash
# think: 4000, megathink: 10000, ultrathink: 31999
export MAX_THINKING_TOKENS=31999
echo "MAX_THINKING_TOKENS: $MAX_THINKING_TOKENS" >&2
if [ -f /.dockerenv ]; then
claude --dangerously-skip-permissions $*
elif [ "$(command -v cage)" != "" ]; then
cage -config "$HOME/.config/cage/presets.yaml" -preset claude-code \
@mohemohe
mohemohe / 00_manjaro_settings.conf
Created February 12, 2025 04:16
Manjaro on CHUWI MiniBook X N100のあれこれ
# /etc/sddm.conf.d/00_manjaro_settings.conf
[Theme]
Current=breath
CursorTheme=breeze_cursors
CursorSize=36
[X11]
DisplayCommand=/usr/share/sddm/scripts/Xsetup
@mohemohe
mohemohe / backlog-shortcut.user.js
Last active June 5, 2024 07:23
Backlogの課題番号から該当の課題を直接開くやつ
// ==UserScript==
// @name Backlogの課題番号から該当の課題を直接開くやつ
// @namespace dev.mohemohe.backlog.shortcut
// @match https://*.backlog.jp/*
// @match https://*.backlog.com/*
// @grant none
// @version 1.1
// @author mohemohe
// @description 2024/6/5 15:30:49
// ==/UserScript==
@mohemohe
mohemohe / github-backlog-linkify.user.js
Created April 22, 2024 06:40
GitHubのPullReqのタイトルにあるBacklogの課題キーをいい感じにリンクにするやつ
// ==UserScript==
// @name github.com Backlog linkify
// @namespace Violentmonkey Scripts
// @match https://github.com/*
// @grant none
// @version 1.0
// @author -
// @description 2024/4/22 14:40:04
// @require https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js
// ==/UserScript==
@mohemohe
mohemohe / fxtwitter.user.js
Created January 10, 2024 06:28
FxTwitterの共有リンクをクリップボードにコピー
// ==UserScript==
// @name FxTwitter
// @namespace Violentmonkey Scripts
// @match https://twitter.com/*/status/*
// @grant none
// @version 1.0
// @author -
// @description 2024/1/10 14:48:46
// @require https://cdn.jsdelivr.net/npm/@violentmonkey/shortcut@1
// @require https://cdn.jsdelivr.net/combine/npm/@violentmonkey/dom@2,npm/@violentmonkey/[email protected]
@mohemohe
mohemohe / カスタムスクリプト.js
Created October 21, 2023 19:07
Enhancer for YouTube 日本語字幕
(async () => {
const waitAsync = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
document.querySelector(".ytp-settings-button").click();
await waitAsync(500);
let items = document.querySelectorAll(".ytp-settings-menu .ytp-menuitem-label");
let ok = false;
for (const item of Array.from(items)) {
@mohemohe
mohemohe / _.md
Created July 24, 2023 10:48
XのロゴをTwitterに戻すCSS

@mohemohe
mohemohe / watch-karabiner.1s.sh
Created January 25, 2023 06:15
watch-karabiner.1s.sh
#!/bin/bash
current="$(lsappinfo info -only name "$(lsappinfo front)" | cut -d'=' -f2)"
case "$current" in
'"Parsec"' | '"Parallels Desktop"' ) profile="PC" ;;
* ) profile="Default" ;;
esac
if [[ ! -e /tmp/watch-karabiner ]]; then
touch /tmp/watch-karabiner
@mohemohe
mohemohe / install_docker-compose.sh
Last active October 30, 2022 06:22
install/update docker compose v2
#!/bin/bash -x
if [[ "${COMPOSE_VERSION}" == "" ]]; then
echo "must be set env 'COMPOSE_VERSION'"
exit 1
fi
OS="$(uname -s | awk '{print tolower($0)}')"
ARCH="$(uname -m)"
@mohemohe
mohemohe / youtube-subtitle.js
Last active August 6, 2021 15:09
youtube-subtitle.js
(async () => {
const wait = (ms) => new Promise(resolve => setTimeout(resolve, ms));
const subtitleButton = document.querySelector('.ytp-subtitles-button');
if (!subtitleButton) {
return;
}
const subtitleButtonState = subtitleButton.getAttribute('aria-pressed') === 'true';
subtitleButton.click();
if (subtitleButtonState) {