Skip to content

Instantly share code, notes, and snippets.

--
-- open currently active Chrome tab with Safari
-- forked from https://gist.github.com/3151932 and https://gist.github.com/3153606
--
property theURL : ""
tell application "Google Chrome"
set theURL to URL of active tab of window 0
end tell
if appIsRunning("Safari") then
@inouetmhr
inouetmhr / gist:9a780c67c80f7a330832
Last active August 29, 2015 14:13
Mac OSX (Yosemite) で Apache WebDav

OSアップデートで設定がリセットされている。

/etc/apache2/httpd.conf で Include の WebDAV 1箇所と、LoadModuleのDav関係3つをアンコメント

/etc/apache2/extra/httpd-dav.conf を以下のように変更

DavLockDB "/tmp/DavLock"
# => /tmp/ のパーミッションに注意。/tmp/DavLock.dir /tmp/DavLock.pag が作られるはず

Alias /dav "/foo/bar/dav"

@inouetmhr
inouetmhr / emacs.rb
Created April 2, 2012 06:01 — forked from sharl/emacs.rb
Yet Another Emacs 23.4 homebrew Formula (ATOK support? unconfirmed) + fix-shiftmodifier-with-ime.patch
require 'formula'
class Emacs < Formula
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.4.tar.bz2'
md5 '070c68ad8e3c31fb3cb2414feaf5e6f0'
homepage 'http://www.gnu.org/software/emacs/'
if ARGV.include? "--use-git-head"
head 'git://git.sv.gnu.org/emacs.git'
else
@inouetmhr
inouetmhr / mew.rb
Created April 16, 2012 05:44 — forked from ushiushix/mew.rb
Homebrew formula for Mew 6.5
# Note:
# To install git-head of mew:
# brew install --ignore-dependencies --HEAD mew
# If you omit --ignore-dependencies, brew will try to install Emacs head as well.
require 'formula'
class Mew < Formula
url 'http://www.mew.org/Release/mew-6.5.tar.gz'
homepage 'http://www.mew.org'
md5 '5aa0071696fd234f8853110b348c0357'
@inouetmhr
inouetmhr / fix-shiftmodifier-patch-for-emacs-inline-patch.diff
Created May 8, 2012 12:04 — forked from henry0312/fix-shiftmodifier-patch-for-emacs-inline-patch.diff
FIx typester's fix-shiftmodifier-with-ime.patch for emacs-inline.patch
diff --git a/src/nsterm.m b/src/nsterm.m
index 211b029..5a650b6 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -4508,7 +4508,7 @@ ns_term_shutdown (int sig)
if (mac_pass_key_directly_to_emacs ()
|| fnKeysym
- || (emacs_event->modifiers
+ || (emacs_event->modifiers && (emacs_event->modifiers != shift_modifier)
@inouetmhr
inouetmhr / emacs-inline.patch
Created May 9, 2012 01:30
p1 version of emacs-inline.patch (R579)
diff -r -p -x '*.elc' ../emacs-23.3-0-lion/lisp/term/ns-win.el lisp/term/ns-win.el
*** a/lisp/term/ns-win.el 2011-12-05 16:49:13.000000000 +0900
--- b/lisp/term/ns-win.el 2012-01-13 08:55:10.000000000 +0900
*************** The properties returned may include `top
*** 317,322 ****
--- 317,323 ----
(cons (logior (lsh 0 16) 12) 'ns-new-frame)
(cons (logior (lsh 0 16) 13) 'ns-toggle-toolbar)
(cons (logior (lsh 0 16) 14) 'ns-show-prefs)
+ (cons (logior (lsh 0 16) 15) 'mac-change-input-method)
@inouetmhr
inouetmhr / emacs.rb
Created May 9, 2012 07:21
Homebrew formula for Emacs 23.4 with Japanese patches
require 'formula'
class Emacs < Formula
homepage 'http://www.gnu.org/software/emacs/'
url 'http://ftpmirror.gnu.org/emacs/emacs-23.4.tar.bz2'
mirror 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.4.tar.bz2'
md5 '070c68ad8e3c31fb3cb2414feaf5e6f0'
if ARGV.include? "--use-git-head"
head 'http://git.sv.gnu.org/r/emacs.git'
@inouetmhr
inouetmhr / install.sh
Created May 23, 2012 01:39
Mac OS X (10.7) での Scala etc. インストール
brew install scala
brew install sbt
brew install giter8
# 以上
@inouetmhr
inouetmhr / gist:3506238
Created August 29, 2012 02:33
L-01D LTE off
- ネットワーク off
- *#*#4636#*#* ダイアル
- 携帯電話情報
- WCDAM only
- 戻る連打
- 再起動
- Android設定から、モバイルネットワーク on
アプリの「LTE On Off」を使うと、ネットワークoffでなくても携帯電話情報を呼び出せるので、そちらの方が簡単かつ再現性が高いかも。
@inouetmhr
inouetmhr / L-01D
Created August 29, 2012 03:32
android disabled packages
2012/8/29
パッケージ名
http://www.compnet.jp/index.php/archives/2526
- iチャネル jp.co.nttdocomo.ichannel
- spモード jp.co.nttdocomo.carriermail
- 地図アプリ jp.dmapnavi.navi
- 地図アプリウィジェット com.nttdocomo.android.dmapnavi.widget