Skip to content

Instantly share code, notes, and snippets.

View 10sr's full-sized avatar
👀
I may be slow to respond.

10sr 10sr

👀
I may be slow to respond.
View GitHub Profile
@10sr
10sr / myjp106.map
Created March 9, 2012 17:01
capslock as ctrl, fix backspace for emacs
# jp106.map : Japanese 106 keyboard keymap
#
# Date: Tue, 20 Aug 1996 16:15:31 +0900
# From: Hideya Hane <wing@aries.bekkoame.or.jp>
#
keymaps 0-1,4-5,8-9,12
alt_is_meta
include "qwerty-layout"
include "linux-with-two-alt-keys"
strings as usual
@10sr
10sr / rc.xml
Last active October 1, 2015 13:17
openbox configuration newly added codes
<!-- window control -->
<keybind key="A-Return">
<action name="ToggleFullscreen" />
</keybind>
<!-- desktop switching -->
<keybind key="A-Left">
<action name="GoToDesktop">
<to>left</to>
<wrap>yes</wrap>
</action>
@10sr
10sr / firefox-addon-manager.ks.js
Created March 5, 2012 05:56 — forked from 958/firefox-addon-manager.ks.js
[keysnail]Firefox addon manager (Add ext copyto-clipboard)
// Info
let PLUGIN_INFO =
<KeySnailPlugin>
<name>Firefox addon manager</name>
<description>Firefox addon manager</description>
<description lang="ja">Firefox のアドオン管理</description>
<updateURL>https://raw.github.com/gist/1011984/firefox-addon-manager.ks.js</updateURL>
<iconURL>https://sites.google.com/site/958site/Home/files/firefox-addon-manager.ks.png</iconURL>
<author>958</author>
@10sr
10sr / file0.txt
Created November 18, 2011 06:47
svnのブランチ名をプロンプトへ ref: http://qiita.com/items/1098
$ __my_svn_ps1 [SVN:%s]
@10sr
10sr / dired-diff.el
Created November 3, 2011 12:24
dired-diff using mark for selecting old file
(defun my-dired-diff ()
""
(interactive)
(let ((files (dired-get-marked-files nil nil nil t)))
(if (eq (car files)
t)
(diff (cadr files) (dired-get-filename))
(message "One files must be marked!"))))
@10sr
10sr / pochiesu
Created May 8, 2011 08:35
tclock,ポチエス
shutdown.exe | Shutdown
>-s | Now
>-r | Reboot
>-h | Hibernate
rundll32.exe | Lock
>user32.dll,LockWorkStation
;;; scratch バッファがいらない気がしたので、下記のコードを削除し、別ファイルのkill scratchを追加した
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; scratch buffer
;; http://blog.lifeflow.jp/2010/02/emacs-scratch.html
(defun save-scratch-buffer ()
"Save scratch buffer. Return nil if buffer is not modified."
(interactive)
(when (get-buffer "*scratch*")
@10sr
10sr / 50-wacom.conf
Created April 7, 2011 09:25
bamboo pen on ubuntu lucid
Section "InputClass"
Identifier "Wacom class"
# WALTOP needs a patched kernel driver, that isn't in mainline lk yet,
# so for now just let it fall through and be picked up by evdev instead.
# MatchProduct "Wacom|WALTOP|WACOM"
MatchProduct "Wacom|WACOM|Hanwang"
MatchDevicePath "/dev/input/event*"
Driver "wacom"
EndSection
@10sr
10sr / autostart.ls
Created February 21, 2011 11:47
ubuntu lucid のautostart関連の ls -la
/etc/xdg/autostart:
total used in directory 100K available 31083864
drwxr-xr-x 2 root 4.0K 2010-12-17 15:25 ./
drwxr-xr-x 9 root 4.0K 2011-01-30 18:30 ../
-rw-r--r-- 1 root 415 2010-07-08 00:07 at-spi-registryd.desktop
-rw-r--r-- 1 root 356 2010-04-09 20:15 bluetooth-applet.desktop
-rw-r--r-- 1 root 319 2010-04-14 19:54 evolution-alarm-notify.desktop
-rw-r--r-- 1 root 481 2010-04-11 21:50 gdu-notification-daemon.desktop
-rw-r--r-- 1 root 524 2010-04-29 17:05 gnome-at-session.desktop
-rw-r--r-- 1 root 539 2010-06-25 19:44 gnome-keyring-pkcs11.desktop
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00