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
| インスタンスタイプ | 仮想コア数 | RAM(GiB) | 年契約 | 初期費用 | 月額費用 | 1年間合計費用( 初期費用 + 月額費用 x 12 ) | | |
|--------------------|------------|-----------|----------|----------|----------|-------------------------------------------| | |
| m1.medium | 1 | 3.7 | なし | $0 | $91.12 | | | |
| m1.medium | 1 | 3.7 | 1年 | $270.00 | $27.43 | | | |
| c3.large | 2 | 3.7 | なし | $0 | $95.51 | | | |
| c3.large | 2 | 3.7 | 1年 | $357.00 | $36.22 | | | |
| r3.large | 2 | 15.0 | なし | $0 | $155.53 | |
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
if type percol &>/dev/null | |
then | |
[ ! -e ~/.cd_history ] && pwd > ~/.cd_history | |
function _percol_log_delete { | |
local log=/tmp/percol-log | |
if [ -e $log ];then | |
\rm $log | |
fi | |
} | |
_replace_by_history() { |
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
#!/usr/bin/env node | |
var Tumblr = require('tumblrwks'); | |
var fs = require('fs'); | |
var tumblr = new Tumblr( | |
{ | |
consumerKey: 'xxxxxxxxxxxxx', | |
consumerSecret: 'xxxxxxxxxxxxxx', | |
accessToken: 'xxxxxxxxxxxxxx', |
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
set completefunc=GoogleComplete | |
function! GoogleComplete(findstart, base) | |
if a:findstart | |
let line = getline('.') | |
let start = col('.') - 1 | |
while start > 0 && line[start - 1] =~ '\S' | |
let start -= 1 | |
endwhile | |
return start |
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
percol.import_keymap({ | |
"C-h" : lambda percol: percol.command.delete_backward_char(), | |
"C-d" : lambda percol: percol.command.delete_forward_char(), | |
"C-k" : lambda percol: percol.command.kill_end_of_line(), | |
"C-y" : lambda percol: percol.command.yank(), | |
"C-t" : lambda percol: percol.command.transpose_chars(), | |
"C-a" : lambda percol: percol.command.beginning_of_line(), | |
"C-e" : lambda percol: percol.command.end_of_line(), | |
"C-b" : lambda percol: percol.command.backward_char(), | |
"C-f" : lambda percol: percol.command.forward_char(), |
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 | |
set -e | |
# dnsだけ調べる | |
# usage | |
# ./check_dns.sh hoge@example.com | |
domain=`echo $1 | cut -d@ -f2` | |
mxrecords=`dig +short $domain. mx | wc -l` | |
if [ "$mxrecords" -ge "1" ];then | |
echo ok |
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
FROM debian:jessie | |
MAINTAINER yaasita | |
#apt | |
RUN apt-get update | |
#package | |
RUN apt-get install -y vim git aptitude build-essential nodejs libgnome-keyring-dev npm paco \ | |
libgconf-2-4 libgtk2.0-0 libgtk2.0-0-dbg libnss3 libxtst6 libxtst6-dbg libasound2 x11-apps | |
#npm config | |
RUN npm config set python /usr/bin/python2 -g | |
#ssh |
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
autocmd BufWritePost $MYVIMRC call WriteVimrc() | |
function WriteVimrc() | |
if bufexists(expand("~/backup/dotfiles/.vimrc")) | |
return | |
endif | |
if filewritable(expand("~/backup/dotfiles/.vimrc")) == 1 | |
w! ~/backup/dotfiles/.vimrc | |
endif | |
endfunction |
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
diff --git a/bin/ymst.sh b/bin/ymst.sh | |
index d3e6a6f..758b3c4 100755 | |
--- a/bin/ymst.sh | |
+++ b/bin/ymst.sh | |
@@ -1,6 +1,9 @@ | |
#!/bin/bash | |
set -e | |
cd `dirname $0` | |
+if [ "$CLIENT_ADDRESS" != "192.168.33.1" ] || [ "$SENDER" != "from@hoge.example.com" ] ;then | |
+ exit |