Skip to content

Instantly share code, notes, and snippets.

@garin
garin / elscreen-separate-buffer-list-cycle.el
Last active January 21, 2018 22:12
elscreen-separate-buffer-list で buffer-cycle する lisp
;;; elscreen-separate-buffer-list-cycle.el
;;
;; elscreen-separate-buffer-list 版 BufferSelection の
;; bs-cycle-previous , bs-cycle-next のようなもの
;;
;; Author: garin <garin54@gmail.com>
;; Version: 0.0.3
;; Date: 2017.09.10
;;
@garin
garin / xmonad+xmobar.md
Created September 8, 2017 01:08
xmonad を起動すると xmobar がアプリ覆い隠されて見えなくなる問題

調査

Debian パッケージ: 9/2 に xmonad が v0.12 から v0.13 に上がった https://tracker.debian.org/news/867909

@c2:% xmonad --version xmonad 0.13 @c2:% xmobar --version xmobar 0.24.5

@garin
garin / weather.rb
Last active August 29, 2015 14:26
#!/usr/bin/env ruby
# original to : https://gist.github.com/yuhkikame/d2adf493c0308f247682
#
# // show all main weather data
# $ ruby weather.rb
# temp 32.39
# pressure 1006
# ...
#
# // show temp data only
@garin
garin / fixturesload.rake
Created June 3, 2015 03:51
lib/capistrano/tasks/fixturesload.rake
# require capistrano/rails
# https://github.com/capistrano/rails
#
# fixtures:load
namespace :deploy do
desc 'Runs rake db:fixtures:load (original)'
task :fixtures => [:set_rails_env] do
on primary fetch(:fixtures_role) do
info '[deploy:migrate] Run `rake db:fixtures:load`'
within release_path do
# capistrano3 sshkit(v1.7.1) 用のフォーマッターファイル
# 背景の暗いコンソールで見やすいように色を調整しています
# 元ファイルは: https://github.com/capistrano/sshkit/blob/master/lib/sshkit/formatters/pretty.rb
#
module SSHKit
module Formatter
class MyFormat < Abstract
@garin
garin / catch.rb
Last active December 13, 2015 18:08
catch.com 用コマンドラインツール
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
# catch.com のテキストメモの作成と表示をするコマンドラインツール
#
# == 環境
# 以下の環境でのみ動作確認済み
#
# * Debian 7.0
# * ruby-1.9
#
;; = ~/.emacs
;; ===== 基本設定 ==========================================
;; ----- 文字コードセット
(load "~/.emacs.d/utf8rc.el")
;; ----- 外部関数
(load "~/.emacs.d/defuncrc.el")
;; ----- ロードパス
(let ((default-directory "/usr/share/emacs/site-lisp"))