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
cd /usr/local/src/ | |
wget http://ftp.de.debian.org/debian/pool/main/j/jwhois/jwhois_4.0.orig.tar.gz | |
tar xzvf jwhois_4.0.orig.tar.gz | |
cd jwhois-4.0/ | |
wget http://www.fukatani.org/~hi-lo/blog/archives/upload_data/jwhois-4.0-fix-ipv6socket.patch | |
patch -p1 < jwhois-4.0-fix-ipv6socket.patch | |
mkdir /usr/local/jwhois | |
./configure --prefix=/usr/local/jwhois/ | |
make -j4 | |
make install |
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/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import tweepy | |
from tweepy import Stream, TweepError | |
import logging | |
import urllib | |
CONSUMER_KEY='' |
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 | |
echo -e "let g:vimrc_local_finish = 1\nset langmenu=ja_ja.utf-8.macvim" > /Applications/MacVim.app/Contents/Resources/vim/vimrc | |
echo -e "let g:gvimrc_local_finish = 1" > /Applications/MacVim.app/Contents/Resources/vim/gvimrc |
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/python | |
# coding: utf-8 | |
import re, random, string, urllib, urllib2, BeautifulSoup | |
from django.utils import html | |
def get_yunyan(): | |
# ゆーにゃんったーのURL | |
url = 'http://shindanmaker.com/128157' |
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 | |
GATEWAY_IP= | |
# Gmail | |
sudo route -nv add -host imap.googlemail.com ${GATEWAY_IP} | |
sudo route -nv add -host smtp.googlemail.com ${GATEWAY_IP} | |
# J:COM Mail | |
sudo route -nv add -host pop.jcom.home.ne.jp ${GATEWAY_IP} |
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 | |
GATEWAY_IP= | |
# Gmail | |
sudo route -nv delete -host imap.googlemail.com ${GATEWAY_IP} | |
sudo route -nv delete -host smtp.googlemail.com ${GATEWAY_IP} | |
# J:COM Mail | |
sudo route -nv delete -host pop.jcom.home.ne.jp ${GATEWAY_IP} |
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
$ time curl -I -w '%{http_code}\n' http://192.0.2.3/index.php |
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 python | |
# coding: utf-8 | |
import os | |
import time | |
src_dir = "" | |
dst_dir = "" | |
import_file = "" | |
export_file = "" |
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 -euo pipefail | |
filepath=$1 | |
# 10MBytes/sec | |
filesize=$(du -m ${filepath} | awk '{print $1}') | |
sleep_time=0.1 | |
for num in $(seq 1 ${filesize}); |
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
find ./ -exec sleep 0.1 \; -delete -print |
OlderNewer