Skip to content

Instantly share code, notes, and snippets.

#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
@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 {

Windows 10 SSD 換装

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

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

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

システムイメージを作る

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

#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 '
@hetima
hetima / cmd.sh
Created May 25, 2017 09:58
マウスホイールのスクロール加速度を調節
/usr/bin/hidutil property --filter '{"ProductID":0xc246,"VendorID":0x46d,}' --set '{"HIDMouseScrollAcceleration":75000}'
@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.
local a = "a"
function test()
print("a=", a)
print("b=", b)
print("c=", c)
end
local b = "b"
c = "c"
NSImage* lightImage;
{
lightImage=[[NSImage alloc]initWithSize:[image size]];
[lightImage lockFocus];
NSRect rect=NSZeroRect;
rect.size=[image size];
[image drawAtPoint:NSZeroPoint fromRect:rect operation:NSCompositeCopy fraction:0.4];
[lightImage unlockFocus];
}
@hetima
hetima / private.xml
Created April 24, 2013 05:26
test: functional key to shift key with KeyRemap4MacBook
<?xml version="1.0"?>
<root>
<item>
<name>FKEY to Shift_L</name>
<appendix>(+ When you type FKEY only, send FKEY)</appendix>
<identifier>private.fkey2shiftL_fkey</identifier>
<autogen>__KeyOverlaidModifier__ KeyCode::F1, KeyCode::SHIFT_L, KeyCode::F1</autogen>
<autogen>__KeyOverlaidModifier__ KeyCode::F2, KeyCode::SHIFT_L, KeyCode::F2</autogen>
<autogen>__KeyOverlaidModifier__ KeyCode::F3, KeyCode::SHIFT_L, KeyCode::F3</autogen>
<autogen>__KeyOverlaidModifier__ KeyCode::F4, KeyCode::SHIFT_L, KeyCode::F4</autogen>
@hetima
hetima / gist:5142318
Created March 12, 2013 11:52
NSScrollView のスクロール位置を同期する
@interface SSRefrectingScrollView : NSScrollView
@property BOOL inRefrecting;
@property (assign)IBOutlet SSRefrectingScrollView* counterPartView;
@end
@implementation SSRefrectingScrollView