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 | |
HOSTNAME=$(hostname) | |
DATE=$(date "+%Y%m%d-%H%M%S") | |
# iozone variables | |
output_path="/root/st_measure/iozone/iscsi_plain_direct_io_${HOSTNAME}" | |
file_size="256m" | |
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 | |
HOSTNAME=$(hostname) | |
DATE=$(date "+%Y%m%d-%H%M%S") | |
# iozone variables | |
output_path="/root/st_measure/iozone/iscsi_plain_${HOSTNAME}" | |
file_size="256m" | |
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 | |
# by atalntis@wisetodd.com | |
# Description : | |
# 1. sd로 시작되는 disk 정보에 대해서만 dd를 한다. | |
# 2. 만일 sda1, sda2식으로 이루어진 subpartition은 skip한다. | |
# 3. 아래의 disk 초기화는 sda ~ sdz까지로 제한한다. | |
#INPUTFILE=/proc/diskstats |
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 | |
# cache construct variables | |
CACHE_DEV="/dev/sdb" | |
#SOURCE_DEV="/dev/sdd" | |
SOURCE_DEV="/dev/sdc" | |
CACHE_NAME="test-dmc" | |
# cache device whole size(byte) | |
CACHE_DEV_SZ=$(blockdev --getsize64 ${CACHE_DEV}) | |
SOURCE_DEV_SZ=$(blockdev --getsize64 ${SOURCE_DEV}) |
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 perl | |
srand(time()); | |
$randletter = "(int (rand (26)) + (int(rand(1) + .5)% 2?65:97))"; | |
$salt = sprintf("%c%c",eval$randletter,eval$randletter); | |
$plaintext =shift; | |
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 | |
MIDW_BIN="/usr/local/middleware/bin" | |
PATCH_FILE="patch_daemon.tar.gz" | |
# get daemon list | |
shopt -s nullglob | |
psd_array=($MIDW_BIN/*_psd) | |
bsd_array=($MIDW_BIN/*bsd) |
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 | |
rm -rf cscope.files cscope.files | |
find . \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' \) -print > cscope.files | |
cscope -i cscope.files |
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
#include <stdlib.h> | |
#include <limits.h> | |
#include <stdio.h> | |
#include <errno.h> | |
int | |
main(int argc, char *argv[]) | |
{ | |
int base; | |
char *endptr, *str; |
OlderNewer