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
declare -a array | |
for a in $@;do | |
array=("${array[@]}" $a) | |
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
double f = 1.5 | |
System.out.printf("%6.5f",f); |
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
String[] c = new String[4]; | |
c[1] += 3; | |
System.out.println(c[1]); |
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
[base] | |
name=CentOS-$releasever - Base | |
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra | |
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 |
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
[root@localhost ~]# yum install dig | |
Geladene Plugins: fastestmirror | |
http://mirror.centos.org/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirror.centos.org; Unbekannter Fehler" | |
Anderer Spiegelserver wird versucht. |
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
rails new [project name] | |
rails -s |
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
{ | |
"Version":"2012-10-17", | |
"Statement":[ | |
{ | |
"Sid":"cloudconnector", | |
"Effect":"Allow", | |
"Action":[ | |
"ec2:DescribeImages", | |
"ec2:DescribeInstances", | |
"ec2:DescribeRegions", |
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
rpm -e ds_agent |
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
id -ユーザ確認 | |
pwd -現在地確認 | |
date -作業実施日確認 | |
uname -n -ログインサーバ確認 | |
mkdir -p /work/os -作業ディレクトリ作成 | |
cp -p /etc/sysctl.conf /work/os/sysctl.conf_${date +"%Y%m%d"} -バックアップ取得 | |
ls -l /work/os/sysctl.conf_${date +"%Y%m%d"} -バックアップ確認 | |
cat /etc/sysctl.conf -作業対象ファイルの中身確認 | |
ls -l /etc/sysctl.conf -作業対象ファイルの権限回りの確認 |
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
プログラムを構成する比較的小さな単位(ユニット)が個々の機能を正しく果たしているかどうかを検証するテスト |
OlderNewer