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 term-send-function-key () | |
(interactive) | |
(let* ((char last-input-event) | |
(output (cdr (assoc char term-function-key-alist)))) | |
(term-send-raw-string output))) | |
(defconst term-function-key-alist '((f1 . "\e[OP") | |
(f2 . "\e[OQ") | |
(f3 . "\e[OR") | |
(f4 . "\e[OS"))) |
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
# Install chit on ruby 1.9.2+ | |
git clone https://github.com/libin/chit.git | |
cd chit | |
gem build chit.gemspec | |
gem install chit-1.0.1.1.gem |
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/zsh | |
BINDIR="${HOME}/.tools/bin" | |
QUICKLISPDIRNAME=".quicklisp" | |
WORKINGLISPDIR="${HOME}/Dynamics/sbcl" | |
EMACS_CL=emacs | |
() { | |
[[ -a "${HOME}/.emacs.d/data/.launched" ]]\ | |
&& which emacs-cl > /dev/null 2>&1\ | |
&& EMACS_CL=emacs-cl | |
} |
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 | |
# 初期設定 | |
WORK=$HOME/Builds/build-essential | |
PREFIX=$HOME/local | |
export PATH="$PREFIX/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" | |
# ソースコードのダウンロード | |
if [ ! -d $WORK/src ] ; then | |
mkdir src |
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
;; go to your favorite web site directory in order to create a simple-blog bundle and start sbcl | |
;; NOTE: you may start sbcl via: 'clbuild lisp' | |
(use-package :ql-dist) | |
(available-versions (dist "quicklisp")) | |
(install-dist "http://beta.quicklisp.org/dist/quicklisp/2011-11-07/distinfo.txt" :replace t) | |
(ql:quickload "cl-precedence") | |
(ql:quickload "weblocks") | |
(require :weblocks-scripts) | |
(weblocks-scripts:make-application 'simple-blog (truename ".")) | |
(push (make-pathname :directory '(:relative "simple-blog")) |
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
# solve the missing `readlink -f` option on OSX | |
canonical_readlink() | |
{ | |
cd `dirname $1`; | |
__filename=`basename $1`; | |
if [ -h "$__filename" ]; then | |
canonical_readlink `readlink $__filename`; | |
else | |
echo "`pwd -P`/$__filename"; | |
fi |
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
#!/usr/bin/env zsh | |
which shunit2 &> /dev/null || ( echo "install shunit2" && exit ) | |
setopt shwordsplit | |
testSubstituteRL(){ | |
local file=/etc/passwd.txt | |
assertEquals "substitute root" "/etc/passwd" ${file:r} | |
assertEquals "substitute tail" "passwd.txt" ${file:t} | |
} |
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
#!/usr/bin/env zsh | |
# Sync mxcl homebrew with a forked version | |
# | |
# Usage: upgrade_forked_brew.sh && git push origin | |
emulate -L zsh | |
local FORK_GITHUB_USER=martialboniou |
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
;;; SNIPPET FOR QUICKLISP | |
;; If you get error when evaluating (asdf::source-registry) in the SBCL REPL | |
;; you can replace the line '(ensure-asdf-loaded)' in quicklisp/setup.lisp by: | |
#-asdf | |
(load (qmerge "asdf.lisp")) | |
;;; SNIPPET FOR CLBUILD2 |
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
;; MY STUMPWM | |
(in-package :stumpwm) | |
(setq *mouse-focus-policy* :click) | |
(setf *startup-message* | |
"everything seems to be just fine") | |
(set-contrib-dir "/home/sleeze/.config/stumpwm/contrib") | |
(setf *suppress-frame-indicator* t) | |
;; Directories |
OlderNewer