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 |
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 . -print -exec sleep 0.1 \; | xargs -n1 -I%% mv %% dst_dir/ |
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
# rsync コマンドを用いるケース | |
rsync -av --bwlimit 10000 src dst | |
# tar + pv コマンドを用いるケース | |
tar czvf - src | pv -L 2048k | cat - > /path/to/dist |
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
# dd で全部やるパターン | |
ionice -c3 dd if=/dev/zero of=100GB.img bs=1M count=102400 oflag=direct | |
ionice -c3 dd if=/dev/zero of=100GB.img bs=1M count=102400 oflag=sync | |
ionice -c3 dd if=/dev/zero of=100GB.img bs=1M count=102400 oflag=fdatasync | |
ionice -c3 dd if=/dev/zero of=100GB.img bs=1M count=102400 oflag=fsync | |
# 単位ファイルを作成して足し続けるパターン | |
ionice -c3 dd if=/dev/zero of=100MB.img bs=1M count=100 oflag=direct | |
for i in $(seq 1 1000); do ionice -c3 cat 100MB.img >> 100GB.img; sleep 5; done |
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
{ | |
"brand": [ | |
"夢ごこち", | |
"彩", | |
"初星", | |
"四国", | |
"春陽", | |
"朝日", | |
"秋晴", | |
"でわ75ひかり", |
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
# yum install https://downloads.mariadb.com/enterprise/WY99-BC52/generate/10.0/mariadb-maxscale=1.2/mariadb-enterprise-repository.rpm | |
# yum install MariaDB-server MariaDB-client | |
# yum install maxscale |
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 |
OlderNewer