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
test | |
テスト | |
push テスト | |
edit on github web | |
push public |
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
// ==UserScript== | |
// @name hatena bookmark fix | |
// @namespace http://d.hatena.ne.jp/yonchu | |
// @version 0.0.1 | |
// @description hatena bookmark for Chrome Extension fix | |
// @include http://www.google.*/search?* | |
// @include https://www.google.*/search?* | |
// @include http://encrypted.google.*/search?* | |
// @include https://encrypted.google.*/search?* | |
// @include http://www.google.*/webhp* |
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
// ==UserScript== | |
// @name Twitter Transparency | |
// @namespace http://d.hatena.ne.jp/yonchu | |
// @version 0.0.2 | |
// @description Twitterのページを半透明化し、背景画像を見やすくする。 | |
// @include https://twitter.com | |
// @include https://twitter.com/* | |
// @exclude https://twitter.com/settings | |
// @exclude https://twitter.com/settings/* | |
// @see http://d.hatena.ne.jp/yonchu/ |
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 | |
# | |
# 256色のカラーパレットを表示する | |
# bash と zsh にて実行可能 | |
# | |
target_shell=$1 | |
if [ -z "$1" ]; then | |
target_shell=$(basename "$SHELL") |
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/bash | |
# | |
# ANSI Color code (16colors) | |
# | |
# http://ascii-table.com/ansi-escape-sequences.php | |
# http://archive.linux.or.jp/JF/JFdocs/Bash-Prompt-HOWTO-5.html | |
# Escape sequence |
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
chpwd() { | |
ls_abbrev | |
} | |
ls_abbrev() { | |
# -a : Do not ignore entries starting with .. | |
# -C : Force multi-column output. | |
# -F : Append indicator (one of */=>@|) to entries. | |
local cmd_ls='ls' | |
local -a opt_ls | |
opt_ls=('-aCF' '--color=always') |
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/bash | |
# | |
# 1. このスクリプトをPATHの通った所(~/bin など)に置き、実行権限を与える(chmod +x tmux-pbcopy) | |
# 2. ~/.tmux.conf に以下のようにキーバインドを設定して使用 | |
# bind ^y run-shell 'tmux-pbcopy' | |
# | |
if ! type pbcopy >/dev/null 2>&1 || ! type reattach-to-user-namespace >/dev/null 2>&1; then | |
tmux display-message "Error: cannot copy to clipboard." | |
exit 0 |
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
# | |
# Goolge検索 | |
# | |
# .bashrc or .zshrc などに設定してご使用する | |
# もしくは関数の中身を独立したスクリプトにして使用する | |
# | |
# e.g. | |
# $ google <keyword> | |
# | |
google() { |
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
# 直前のコマンドをクリップボードへ | |
# 第1引数:何個前のコマンドか, 未指定時は1個前のコマンドをコピー | |
# | |
# Note: .zshrc に設定して使用(エイリアス: pbcc) | |
# | |
copy_prev_cmd_to_clipboard () { | |
if [ -n "$1" ] && ! expr "$1" : '[0-9]*' > /dev/null ; then | |
echo "error: non-numeric argument" 1>&2 | |
return 1 | |
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
#!/bin/bash | |
# | |
# Print detail infomation about current git repository. | |
# | |
if ! type git > /dev/null 2>&1; then | |
echo 'Error: Git is not installed' 2>&1 | |
exit 1 | |
fi |
OlderNewer