This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
------------------emacsclientw起動用スクリプト------------------ | |
emacsclientw.exeをまともに使えるようにする。 | |
emacsが起動してないときには起動、起動してる時はアクティブ化、ファイルを送ると読み込む。 | |
gnupack版emacsで使うときはrunemacs.exeの代わりにINST_DIRのemacs.exeを指定する。 | |
AutoHotKey_Lw / Ahk2Exe_Lで動作。 | |
[1] コンパイルして適当な場所に置く | |
とりあえずemacs.exeと同じ場所おすすめ。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun lookup-at-point () | |
(interactive) | |
(lookup-at-point-pos-tip (lookup-current-word)) | |
) | |
;(global-set-key (kbd "C-,") 'lookup-at-point) | |
(defcustom lookup-at-point-pos-tip-color nil | |
"" | |
:type 'strqing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\apps,*.exe | |
C:\Users,*.lnk | |
C:\Chocolatey\lib,*.exe | |
C:\Program Files,*.exe | |
C:\Program Files (x86),*.exe | |
C:\Windows,*.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DEV=$1 | |
fsck.ext3 -pf $DEV && tune2fs -O extents,uninit_bg,dir_index,flex_bg -m 1 $DEV && fsck.ext4 -yfD $DEV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
_kill_emacs() { | |
emacsclient -e '(progn (dolist (f (cdr-safe (reverse (frame-list)))) (delete-frame f t)) (kill-emacs))' | |
sleep 1; ZE=`pidof emacs` | |
[ "a${ZE}" = "a" ] || kill -KILL $ZE | |
} | |
XMODIFIERS="@im=none" | |
GTK_IM_MODULE=none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CDD_PATH=$HOME/.zsh.d | |
export CDD_PWD_FILE=$CDD_PATH/cdd_pwd_list | |
[ -d $CDD_PATH ] || mkdir -p $CDD_PATH | |
source /path/to/cdd.zsh | |
function chpwd() { | |
_reg_pwd_screennum | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
ARCH=i386,amd64 | |
debmirror --verbose --progress --nosource --nocleanup -e http \ | |
--state-cache-days=100 --passive \ | |
--host security.debian.org -r / \ | |
-d squeeze/updates \ | |
-s main,contrib,non-free \ | |
-a $ARCH \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f $HOME/.perlbrew/init ]; then | |
. $HOME/.perlbrew/init | |
fi | |
short_option="" | |
__perlbrew_reinit () { | |
if [ ! -d $HOME/.perlbrew ]; then | |
mkdir -p $HOME/.perlbrew | |
fi |