Skip to content

Instantly share code, notes, and snippets.

Set oShell = CreateObject("Wscript.Shell")
obj = oShell.Run("""C:\Program Files (x86)\Git\bin\sh.exe"" --login -i -c ""/c/apps/emacs/bin/emacsclientw.exe -na /c/apps/emacs/bin/runemacs.exe -c \""\""""", 0, False)
@lurdan
lurdan / StartEmacs.ahk
Last active August 29, 2015 14:10 — forked from acple/StartEmacs.ahk
/*
------------------emacsclientw起動用スクリプト------------------
emacsclientw.exeをまともに使えるようにする。
emacsが起動してないときには起動、起動してる時はアクティブ化、ファイルを送ると読み込む。
gnupack版emacsで使うときはrunemacs.exeの代わりにINST_DIRのemacs.exeを指定する。
AutoHotKey_Lw / Ahk2Exe_Lで動作。
[1] コンパイルして適当な場所に置く
とりあえずemacs.exeと同じ場所おすすめ。
package {
[ 'sysvinit-core', 'sysvinit', 'sysvinit-utils' ]:
ensure => installed;
'systemd':
ensure => purged;
}
-> file { '/etc/apt/preferences.d/without-systemd':
content => 'Package: systemd\nPin: origin ""\nPin-Priority: -1';
}
(require 'e2wm)
;; 2画面ファイラ化。
(setq dired-dwim-target t)
;;; wfiler / Wfiler column editing perspective
;;;--------------------------------------------------
(defvar e2wm:c-wfiler-recipe
'(- (:upper-size-ratio 0.8)
@lurdan
lurdan / w32tex_setup.sh
Created December 28, 2015 23:59
smaller tex setup to use with imaxima.
#!/bin/sh
#TARGET=`uname -m`
INSTDIR=/c/apps/W32TeX
mkdir -p $INSTDIR/tmp
cd $INSTDIR/tmp
while read ARC
do
(require 'ob)
(require 'ob-eval)
(defvar org-babel-default-header-args:blockdiag
'((:results . "file") (:exports . "results"))
"Default arguments to use when evaluating a blockdiag source block.")
(defun org-babel-expand-body:blockdiag (body params)
"Expand BODY according to PARAMS, return the expanded body."
(let ((vars (mapcar #'cdr (org-babel--get-vars params))))
@lurdan
lurdan / make_SO-02G_sane.bat
Created August 25, 2016 10:42
非rootで Z3C をまともにするスクリプト (要 ADB)
adb shell settings put global tether_dun_required 0
adb shell pm hide com.android.contacts
adb shell pm hide com.android.dialer
adb shell pm hide com.nttdocomo.android.accountauthenticator
adb shell pm hide com.nttdocomo.android.apnsw
adb shell pm hide com.nttdocomo.android.applicationmanager
adb shell pm hide com.nttdocomo.android.atf
adb shell pm hide com.nttdocomo.android.bugreport
adb shell pm hide com.nttdocomo.android.cloudset
@lurdan
lurdan / Config.ini
Last active December 27, 2018 10:22
bug.n customized keyconfig like xmonad.
; bug.n - tiling window management
; @version 9.0.0
;; Status bar
;Config_showBar=1
;Config_horizontalBarPos=left
;Config_verticalBarPos=top
;Config_barWidth=100%
;Config_singleRowBar=1
;Config_spaciousBar=0

cp932 向けの変換設定

が良くわからないので調べてみている

脳内ダンプ

Windows 上では、SJIS と Unicode との対応がおかしく (他の環境と違う) て、一部記号などが想定と別の文字になったりする問題がある

ex. Windows 上では入力した文字が SJIS(CP932) から Unicode に変換される過程で

つもり実は