$ docker ps -a | grep CONTAINER_NAME | cut -d ' ' -f 1
03b1407f8ba4
#!/bin/bash | |
DOMAIN=$1 | |
LIST=$2 | |
TIMEOUT=${3:-5} | |
https() { | |
_DOMAIN="${1}" | |
_SUB_DOMAIN="${2}" |
diff <(openssl rsa -in example.com.key.pem -modulus -noout) <(openssl x509 -in example.com.cer.pem -modulus -noout) |
# format /dev/sdb /dev/sdc disk | |
mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sd[bc]1 | |
# mdadm --detail --scan >> /etc/mdadm.conf | |
mkfs.ext4 /dev/md0 | |
e2label /dev/md0 LABEL_NAME | |
# edit /etc/fstab |
# 実行ユーザのホームディレクトリ | |
ls ~ | |
# 指定したユーザのホームディレクトリ | |
ls ~user | |
# 指定したユーザのホームディレクトリ(失敗) | |
USERNAME=USER ls ~$USERNAME | |
# 指定したユーザのホームディレクトリ(変数使用) |
mknod -m 666 /dev/full c 1 7 | |
chown root:root /dev/full |
_PID=$$; _PPID=$(ps -o ppid -p $_PID | tail -n 1); ps -p $_PPID |
brew tap homebrew/binary | |
brew install packer |
# Docker Upstart and SysVinit configuration file | |
# Customize location of Docker binary (especially for development testing). | |
#DOCKER="/usr/local/bin/docker" | |
# Use DOCKER_OPTS to modify the daemon startup options. | |
#DOCKER_OPTS="-dns 8.8.8.8 -dns 8.8.4.4" | |
# If you need Docker to use an HTTP proxy, it can also be specified here. | |
#export http_proxy="http://127.0.0.1:3128/" |
# svn delete recursive | |
find /path/to/dir -print0 | xargs -0 svn delete --force |