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
#!/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 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
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 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
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 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 | |
set -e | |
# dnsだけ調べる | |
# usage | |
# ./check_dns.sh [email protected] | |
domain=`echo $1 | cut -d@ -f2` | |
mxrecords=`dig +short $domain. mx | wc -l` | |
if [ "$mxrecords" -ge "1" ];then | |
echo ok |
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
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 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
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 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
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" != "[email protected]" ] ;then | |
+ exit |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use feature qw(say); | |
# データ入力 | |
my $PEOPLES = <STDIN>; | |
my $COMPANY_NUM = <STDIN>; | |
chomp ($PEOPLES,$COMPANY_NUM); | |
my @COMPANIES; |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use CGI; | |
use IPC::Open2; | |
use utf8; | |
use Encode; | |
my $sendmail = '/usr/sbin/sendmail'; | |
my $nkf = '/usr/local/bin/nkf'; |