Skip to content

Instantly share code, notes, and snippets.

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}'
local a = "a"
function test()
print("a=", a)
print("b=", b)
print("c=", c)
end
local b = "b"
c = "c"
@hetima
hetima / makedocset.py
Last active March 3, 2024 20:03
Python 3.6.1 日本語ドキュメントを Dash.app に追加する
#!/usr/bin/env python3
import os
import time
import copy
import urllib.request
import urllib.parse
from shlex import quote
from math import trunc
from bs4 import BeautifulSoup
@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 / gist:c145eabb6c55a3c8c8d9
Created December 28, 2014 05:32
pkg を解凍するスクリプト。新旧対応、ついでに rar も
#!/usr/bin/env ruby
require "tmpdir"
def proccess_rar(file)
param=["x", file]
system(["unrar", "unrar"], *param)
end
@hetima
hetima / gist:f526cac58a2cdfce56fe
Last active August 29, 2015 14:10
WoTBlitz 課金関連

#WoTBlitz 課金関連

##ゴールド

  • 1,400G 500円 (0.357 円/G)(2.8 G/円)
  • 2,900G 1000円 (0.345 円/G)(2.9 G/円)
  • 6,075G 2000円 (0.329 円/G)(3.04 G/円)
  • 16,000G 5000円 (0.312 円/G)(3.2 G/円)
  • 34,000G 9800円 (0.288 円/G)(3.47 G/円)

##パッケージ

@hetima
hetima / gist:14ea8987a50373706266
Last active August 29, 2015 14:08
Xcode 6.1 Documentation ダウンロード&インストール手順

#Xcode 6.1 Documentation ダウンロード&インストール手順

追記:feed は修正されているので正しくダウンロードできると思われます。上手く行かない場合 ~/Library/Caches/com.apple.dt.Xcode を削除すればよろしいかと。


こういう問題があり、正しくダウンロードできない。(feed が正しい URL を指しておらず OS X 10.10 Documentation がインストールされる)
http://stackoverflow.com/questions/26531103/xcode-6-1-not-download-the-documentation-files

手動で正しいものをダウンロード

@hetima
hetima / gist:8e8e06e02493d36e975a
Last active August 29, 2015 14:08
Yosemite Memo

##古いソフトの対応

  • VMware Fusion 6.0.5 問題なさげ
  • iStat Menus 3.2.7 温度センサー関連をインストールしなければ問題なさげ
  • LaunchBar 5.6 問題なさげ
  • かわせみ 1.1.5 問題なさげ
  • Audio Hijack Pro 2.11 問題なさげ

##リンク