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
#!/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
<!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/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
<?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
" vim-airline theme | |
" | |
" padat | |
" A dark color theme for vim-airline. | |
" | |
" Author: Yuki <paselan at Gmail.com> | |
" Last Change: Wed, 21 Aug 2013 09:53:56 +0900 | |
" | |
" License: MIT License {{{ | |
" Permission is hereby granted, free of charge, to any person obtaining |
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
tell application "iTerm" | |
activate | |
tell the first terminal | |
set ssh_session to (make new session at end of sessions) | |
tell ssh_session | |
exec command "ssh {query}" | |
end tell | |
end tell | |
end tell |
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
" Language: Ruby (rspec) | |
" Author: pasela | |
" License: The MIT License | |
" ctrlp-funky-rspec provides filters for RSpec. It only provides 'describe' | |
" block by default. You can enable more blocks by options. | |
" | |
" | |
" g:ctrlp_funky_rspec_examples (default: 0) | |
" |