a shortcut to run Eclipse on Ubuntu Unity and to register Eclipse with the left Launcher
This file contains hidden or 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
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=rbindkeys | |
Comment=key remapper | |
#Icon=blueman | |
Exec=gksudo /home/kui/.local/bin/start_rbindkeys.sh | |
Terminal=false | |
Type=Application | |
Categories= |
surraund with triple backticks
surraund with triple tildes
This file contains hidden or 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 -eu | |
# -*- coding:utf-8-unix; mode:sh; -*- | |
# | |
# GNU screen で ssh を立ちあげた時に、タイトルを設定するためのスクリプト | |
# | |
# 使い方 | |
# ================== | |
# | |
# .ssh/config の最初の行に下記の三行を追加 | |
# |
This file contains hidden or 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
/var/lib/gems/1.8/gems/active_window_x-0.1.2/lib/active_window_x/display.rb:18:in `x_open_display': invalid name: (null) (ActiveWindowX::Xlib::UnknownDisplayName) | |
from /var/lib/gems/1.8/gems/active_window_x-0.1.2/lib/active_window_x/display.rb:18:in `initialize' | |
from /var/lib/gems/1.8/gems/active_window_x-0.1.2/lib/active_window_x/event_listener.rb:22:in `new' | |
from /var/lib/gems/1.8/gems/active_window_x-0.1.2/lib/active_window_x/event_listener.rb:22:in `initialize' | |
from /var/lib/gems/1.8/gems/rbindkeys-0.0.1/lib/rbindkeys/observer.rb:27:in `new' | |
from /var/lib/gems/1.8/gems/rbindkeys-0.0.1/lib/rbindkeys/observer.rb:27:in `initialize' | |
from /var/lib/gems/1.8/gems/rbindkeys-0.0.1/lib/rbindkeys/cli.rb:71:in `new' | |
from /var/lib/gems/1.8/gems/rbindkeys-0.0.1/lib/rbindkeys/cli.rb:71:in `observe' | |
from /var/lib/gems/1.8/gems/rbindkeys-0.0.1/lib/rbindkeys/cli.rb:35:in `call' | |
from /var/lib/gems/1.8/gems/rbindkeys-0.0.1/lib/rbindkeys/cli.rb:35:in `mai |
This file contains hidden or 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 | |
REDMINE_HOME="/usr/share/redmine" | |
RACK_CONFIG="$REDMINE_HOME/config.ru" | |
REDMINE_PID_FILE="$REDMINE_HOME/tmp/pids/redmine.pid" | |
PORT=80 | |
start(){ | |
echo start ... | |
PID=`pid` |
This file contains hidden or 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
// 自動ガンバルスクリプト | |
// * Google Chrome のコンソールに貼りつけて使う | |
// * ボス戦はページ遷移してしまうのでスクリプトが無効化される | |
(function(){ | |
var MAX_INTERVAL = 180*2*3; // sec | |
var MIN_INTERVAL = 5; // sec | |
var fightInterval = MAX_INTERVAL; | |
var click = (function(){ | |
var ev = document.createEvent('MouseEvents'); |
This file contains hidden or 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 | |
# see https://bbs.archlinux.org/viewtopic.php?id=69589 | |
usage="$0 Version $version Help\nDependencies: libnotify, alsa-utils\nusage:\n\t $0 [OPTIONS] -c COMMAND \nCOMMAND:\n-c\t up \n\t\t(increase volume by increment)\n\tdown \n\t\t(decrease volume by increment)\n\tmute \n\t\t(mute volume) \n\nOPTIONS:\n-i\t increment \n\t\t(the amount of db to increase/decrease)[default:2500] \n-m\t mixer \n\t\t(the device to change)[default:Master]" | |
command= | |
increment=2500 | |
mixer="Master" |
This file contains hidden or 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/bash | |
# init script for `mvn tomcat7:run` | |
PROFILE="" | |
JAVA_HOME="/usr/lib/jvm/java-7-oracle/jre" | |
M2_HOME="/usr/local/lib/apache-maven/apache-maven-2.2.1" | |
LOG_FILE="log/catalina.out" | |
PID_FILE=".run/pid" |