Skip to content

Instantly share code, notes, and snippets.

@kickbase
kickbase / shorten_amazon_url.js
Created October 18, 2026 08:43
[ Bookmarklet ] Shorten Amazon URLs ( effective against homograph attacks as well )
javascript:(function(){var m=location.pathname.match(/\/dp\/([A-Z0-9]{10})/i)||location.pathname.match(/\/gp\/product\/([A-Z0-9]{10})/i);if(m)location.replace("https://www.amazon.co.jp/dp/"+m[1]);})();
@kickbase
kickbase / PARMmenu.xml
Created September 28, 2026 23:40
[Houdini] [Python] Customize menus
<?xml version="1.0" encoding="UTF-8"?>
<menuDocument>
<menu>
<separatorItem/>
<scriptItem id="h.pane.parms.toggle_op_path_relative">
<label>Toggle Relative/Absolute Path</label>
<expression><![CDATA[
parms = kwargs.get("parms") or []
if not parms:
@kickbase
kickbase / package.md
Created September 24, 2026 13:28
Houdini create package

houdini_sharedをPackageとして認識させる

移植先でtoolbar/・desktop/・OPmenu.xml・VEXpressions.txtなどを揃えたあと、その親ディレクトリ(本ドキュメントではhoudini_shared)をHoudiniの検索パスに載せる手順です。

中身のツールやメニューをprefsへ直接コピーするのではなく、packages JSONでHOUDINI_PATHに載せるのがSharedの基本です。

仕組み(要約)

要素 役割
@kickbase
kickbase / Remove-BackupFolders.ps1
Created August 2, 2026 02:14
[Houdini] Remove all "backup" folders under RootPath
# Remove all "backup" folders under RootPath (ASCII only - no encoding issues)
$RootPath = $PSScriptRoot
try {
if (-not (Test-Path -Path $RootPath -PathType Container)) {
Write-Host "Error: Path not found. [$RootPath]" -ForegroundColor Red
exit 1
}
$backups = @(Get-ChildItem -Path $RootPath -Recurse -Directory -Filter "backup" -ErrorAction SilentlyContinue)
@kickbase
kickbase / nodegraphhooks.py
Created July 28, 2026 06:52
[Houdini] [Python] Network editor hook for background drag move
"""Network Editor: hold M and drag the background to move selected nodes.
Install by copying (or linking) this file to:
$HOUDINI_USER_PREF_DIR/python3.11libs/nodegraphhooks.py
Restart Houdini (or open a new Network Editor pane) after installing.
"""
from __future__ import annotations
@kickbase
kickbase / keymap.json
Created July 14, 2026 01:09
[ Zed ] ~\AppData\Roaming\Zed\keymap.json
[
// ============================================================
// Vim Normal / Visual(VimControl)
// ============================================================
{
"context": "VimControl && !menu",
"bindings": {
// set whichwrap(h/l/space/backspace のみ Zed 公式対応)
"h": "vim::WrappingLeft",
"left": "vim::WrappingLeft",
@kickbase
kickbase / setting.json
Created July 14, 2026 01:03
[ Zed ] ~\AppData\Roaming\Zed\settings.json
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"project_panel": {
@kickbase
kickbase / OPmenu.xml
Last active September 24, 2026 13:46
[Houdini] [Python] Customize menus
<?xml version="1.0" encoding="UTF-8"?>
<menuDocument>
<menu>
<separatorItem/>
<scriptItem id="h.pane.wsheet.reset_node_color">
<label>Reset color to default</label>
<scriptCode><![CDATA[
import hou
@kickbase
kickbase / reset_color.py
Created June 10, 2026 08:13
[Houdini] [Python] Shelf tool to reset selected nodes to their default color
import hou
with hou.undos.group("Reset colors to default"):
for node in hou.selectedNodes():
node.setGenericFlag(hou.nodeFlag.ColorDefault, True)
@kickbase
kickbase / markdown-preview-light.css
Created March 16, 2026 23:21
[ VSCode ] Apply light mode to Markdown previews only.
/* Markdown プレビューを常にライト表示(エディタはダークのまま) */
body.vscode-dark,
body.vscode-light {
background-color: #ffffff !important;
color: #24292e !important;
}
body.vscode-dark pre,
body.vscode-dark code {
background-color: #f6f8fa !important;