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
<?xml version="1.0"?> | |
<root> | |
<symbol_map type="KeyCode" name="[" value="0x1e" /> | |
<appdef> | |
<appname>iTERM2</appname> | |
<equal>com.googlecode.iterm2</equal> | |
</appdef> | |
<list> | |
<item> | |
<name>LeaveInsMode with EISUU(vim keybind apps)</name> |

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 | |
# | |
# git-su - Git Switch User | |
# ======================== | |
# | |
# git-su switches user and sshCommand in the current repository. | |
# | |
# USAGE | |
# ----- | |
# |
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
<!DOCTYPE HTML> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>FizzBuzz</title> | |
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.0.4/css/bootstrap-combined.min.css" /> | |
<style> | |
h1 { |
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 | |
git config user.name >/dev/null && git config user.email >/dev/null | |
if [ $? -ne 0 ]; then | |
cat <<EOF | |
Error: Attempt to commit by default user. | |
$GIT_AUTHOR_NAME <$GIT_AUTHOR_EMAIL> | |
Please set user.name and user.email using following commands. |
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 | |
DOWNLOAD_PAGE=https://minecraft.net/download | |
url=$(curl -Ss "$DOWNLOAD_PAGE" | grep -ohE 'http.[^"]+/minecraft_server\.[^"]+\.jar') | |
if [[ -n "$url" ]]; then | |
curl -O "$url" | |
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
# encoding: utf-8 | |
require 'rqrcode' | |
require 'rqrcode_png' | |
str = '日本語てすと' | |
# QRコードで日本語を扱う場合はShift_JISが一般的 | |
# 加えてライブラリの問題なのかASCII-8BITで渡さないとうまくいかない | |
qr_str = str.encode('CP932') |
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
# encoding: utf-8 | |
require "timeout" | |
# Capture the standard output and the standard error of a command. | |
# Almost same as Open3.capture3 method except for timeout handling and return value. | |
# See Open3.capture3. | |
# | |
# result = capture3_with_timeout([env,] cmd... [, opts]) | |
# |
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
" Vim Color File | |
" | |
" pencil256.vim is a derived version of pencil.vim. pencil256 supports | |
" terminal-based Vim without pencil color scheme for the terminal. | |
" (Original pencil.vim requires it such as iterm-colors-pencil) | |
" | |
" In terminal-based Vim, pencil256 has a little difference of colors, because | |
" pencil256 uses the default palette of the terminal (such as xterm 256 color). | |
" | |
" Name: pencil256.vim |