Skip to content

Instantly share code, notes, and snippets.

local a = "a"
function test()
print("a=", a)
print("b=", b)
print("c=", c)
end
local b = "b"
c = "c"
@hetima
hetima / file1.markdown
Last active January 22, 2018 08:51
How to transition from EasySIMBL to SIMBL

#How to transition from EasySIMBL to SIMBL

( ~ is your home directory )

  1. Launch EasySIMBL.app. Turn OFF Use SIMBL checkbox. Quit EasySIMBL.
  2. Remove ~/Library/ScriptingAdditions/EasySIMBL.osax if exists.
  3. SIMBL directory and EasySIMBL.osax located in ~/Library/Containers/ is not needed. Find from Finder or find command like find ~/Library/Containers -name "*SIMBL*" -ls and remove manually if exists.
  4. Restart Mac (just in case).
  5. Install SIMBL-0.9.9 (original SIMBL-0.9.9.pkg is not code signed. So open from context menu)
  6. Done.
@hetima
hetima / cmd.sh
Created May 25, 2017 09:58
マウスホイールのスクロール加速度を調節
/usr/bin/hidutil property --filter '{"ProductID":0xc246,"VendorID":0x46d,}' --set '{"HIDMouseScrollAcceleration":75000}'
#1行目にカレントパス、2行目に時刻を表示 $i $o に値が代入されていたら内容を表示
PROMPT='%B[%~]%b$([ -n "$i" ] && echo "\n%B$"i:%b $i)$([ -n "$o" ] && echo "\n%B$"o:%b $o)
%B[%T]%b '

Windows 10 SSD 換装

Windows 10 の起動ディスクを換装した記録。サードパーティ製のフリーウェア/シェアウェアは一切使わないポリシーで。

USB メモリの回復ドライブを作る

コンパネ → 回復 → 回復ドライブの作成

システムイメージを作る

コンパネ → バックアップと復元(Windows 7)→ システムイメージの作成

@hetima
hetima / 1.ahk
Last active February 16, 2019 00:54
ahk スクリプト
; エクスプローラのウィンドウ前に出す
+!F11::
; エクスプローラが最前面ならサイクル
WinGetClass, front_class, A
if front_class = CabinetWClass
{
WinGet last_win, IDLast, ahk_class CabinetWClass
WinActivate, ahk_id %last_win%
; 後ろから順に前に出す
} else {

#DVTPlugInCompatibilityUUID

  • 5.0 : 37B30044-3B14-46BA-ABAA-F01000C27B63
  • 5.1 : A2E4D43F-41F4-4FB9-BB94-7177011C9AED
  • 6.0 beta : AD68E85B-441B-4301-B564-A45E4919A6AD
  • 6.0, 6.1 : C4A681B0-4A26-480E-93EC-1218098B9AA0
  • 6.2 : A16FF353-8441-459E-A50C-B071F53F51B7
  • 6.3 : 9F75337B-21B4-4ADC-B558-F9CADF7073A7
  • 6.3.2 : E969541F-E6F9-4D25-8158-72DC3545A6C6
  • 6.4 : 7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90

PowerShell で fzf

scoop などで fzf をインストール

PSFzf をインストール

Install-Module -Name PSFzf

PowerShell 7 では管理者権限不要だった。インストール場所は "%USERPROFILE%\Documents\PowerShell\Modules"

@hetima
hetima / keyindex.json
Last active November 3, 2020 04:06
add F13-F24 to AMAG_EN.exe
[
{
"keyIndex": 145,
"marginBottom": 0,
"width": 1,
"height": 1,
"marginRight": 0,
"label": "F13"
},
{
@hetima
hetima / MouseMoveObsvr.ahk
Last active December 4, 2021 07:33
キーを押しながらマウスを動かすとズームやスクロールができるahk
; #InstallKeybdHook や #InstallMouseHook が必要かもしれない
/*
MouseMoveObsvr をサブクラス化して
F2::new SubMouseMoveObsvr("F2")
というようにして使う
キーを押したままマウスを動かすと onLeft() onRight() onUp() onDown() が呼ばれる
マウスが動かさずキーを離したとき(空打ち)は emptyHit() が呼ばれる
xDistance := 8 / yDistance := 8 このピクセル数マウスが動くごとに呼ばれる