Skip to content

Instantly share code, notes, and snippets.

@takatomo
takatomo / Enable-LongPress.sh
Created August 21, 2014 13:02
【Bash】Enable LongPress
# 長押しで連続した文字列を入力
defaults write -g ApplePressAndHoldEnabled -bool false
# アクサンや発音記号を入力
defaults delete -g ApplePressAndHoldEnabled
@takatomo
takatomo / MarsEdit-MakeLink-Customize2.scpt
Created August 5, 2014 11:32
【AppleScript】MarsEdit-MakeLink (抜粋 テンプレート内容).scpt
@takatomo
takatomo / MarsEdit-MakeLink-Customize1.scpt
Last active August 29, 2015 14:04
【AppleScript】MarsEdit-MakeLink (抜粋 テンプレート名).scpt
@takatomo
takatomo / MarsEdit-MakeLink.scpt
Created August 1, 2014 13:46
【AppleScript】MarsEdit-MakeLink.scpt
@takatomo
takatomo / chmod +x
Created July 31, 2014 01:53
【Bash】chmod +x
chmod +x <ダウンロードしたファイルのパス>
@takatomo
takatomo / Add_Compatibility_to_XcodePlugins.sh
Last active September 28, 2015 02:27
【ShellScript】Add Compatibility to XcodePlugins
#!/bin/bash
# 使用するときはここのパスを追加したいバージョンのXcodeのパスに変更してください。
XCODE="/Applications/Xcode.app"
XCODE_ID=`find ${XCODE} -name Info.plist -maxdepth 2 | xargs -I{} defaults read {} DVTPlugInCompatibilityUUID`
PLUGINS=`find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3`
add_XcodeID() {
@takatomo
takatomo / Add UUID for Xcode Plugin.sh
Last active August 29, 2015 14:04
【Bash】Add UUID to Xcode Plugins
#!/bin/bash
# <Xcode UUID>を確認するコマンド ==============================================================================================
# このコマンドで出力された文字列がプラグインの互換性チェックをごまかすための文字列になります。
# Xcode.app の部分は対応させたいXcode.appに変更してください。
find /Applications/<Xcode.app> -name Info.plist -maxdepth 2 | xargs -I{} defaults read {} DVTPlugInCompatibilityUUID
# すべてのプラグインの互換性チェックをごまかすコマンド ==============================================================================
# <Xcode UUID> は上のコマンドで出力された文字列です。
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add <Xcode UUID>
@takatomo
takatomo / Edit PlugIn Compatibility.sh
Last active August 29, 2015 14:04
【Bash】Edit Xcode PlugIn Compatibility
#!/bin/bash
cd ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/
open -a TextEdit ./<プラグインのファイル名>/Contents/Info.plist
# ファイルを開いたら『DVTPlugInCompatibilityUUIDs』を探して値に
# 『AD68E85B-441B-4301-B564-A45E4919A6AD』を追加する