This file contains hidden or 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@Team-G ~]# ls -al /nfs_mount/ | |
合計 255337500 | |
drwxr-xr-x. 2 root root 4096 3月 5 09:43 2015 . | |
dr-xr-xr-x. 24 root root 4096 3月 6 15:19 2015 .. | |
-rw-r--r--. 1 root root 54737623457 3月 3 22:36 2015 mariadb55.tgz | |
-rw-r--r--. 1 root root 54312481626 3月 4 19:32 2015 mysql55.tgz | |
-rw-r--r--. 1 root root 50986130612 2月 23 18:34 2015 mysql56.tgz | |
-rw-r--r--. 1 root root 54194390959 3月 5 01:06 2015 percona55.tgz | |
-rw-r--r--. 1 root root 47234510885 2月 25 21:11 2015 percona56.tgz | |
-rw-r--r--. 1 root root 419840 2月 26 19:54 2015 tpcc-mysql.tar |
This file contains hidden or 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
import ( | |
"os" | |
log "github.com/Sirupsen/logrus" | |
) | |
func main() { | |
log.SetOutput(os.Stderr) | |
log.SetLevel(log.DebugLevel) | |
} |
This file contains hidden or 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
[maker@myblog2 ~]$ cat /etc/redhat-release | |
CentOS Linux release 7.0.1406 (Core) | |
[maker@myblog2 ~]$ uname -a | |
Linux myblog2 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | |
[maker@myblog2 ~]$ dig mirrorlist.centos.org | |
; <<>> DiG 9.9.4-RedHat-9.9.4-14.el7_0.1 <<>> mirrorlist.centos.org | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25262 |
This file contains hidden or 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
## ## equivalant of ... | |
## fdisk /dev/sda | |
## n | |
## p | |
## 1 | |
## [enter] | |
## [enter] | |
## w | |
parted -s /dev/sda mklabel msdos -- mkpart primary ext3 1 -1 |
This file contains hidden or 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@lc6 ~]# for i in `seq 1 4`; do memcached -d -p 1121${i} -u memcached -m 64 -c 1024 -P /var/run/memcached/memcached${i}.pid ;done | |
[root@lc6 ~]# php set.php | |
[root@lc6 ~]# php get.php | |
key1:1 key2:2 key3:3 key4:4 key5:5 key6:6 key7:7 key8:8 key9:9 key10:10 [root@lc6 ~]# | |
[root@lc6 ~]# for i in `seq 1 4`; do echo --memcached${i}; ./memcached-tool localhost:1121${i} dump;echo ;done | |
--memcached1 | |
Dumping memcache contents | |
Number of buckets: 1 | |
Number of items : 2 | |
Dumping bucket 1 - 2 total items |
This file contains hidden or 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 | |
IPADDR=${1:?} | |
GATEWAY=172.16.0.1 | |
DEVNAME="enp0s3" | |
UUID=$(nmcli -f UUID,DEVICE con show | grep ${DEVNAME:?} | awk '{print $1}') | |
nmcli con mod ${UUID:?} ipv4.method manual ipv4.addresses "${IPADDR:?}/24 ${GATEWAY}" ipv4.routes "${IPADDR} ${GATEWAY}" ipv4.dns "8.8.8.8 8.8.4.4" |
This file contains hidden or 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
auth --enableshadow --passalgo=sha512 | |
cdrom | |
firstboot --disable | |
ignoredisk --only-use=sda | |
keyboard --vckeymap=jp106 --xlayouts='jp' | |
lang ja_JP.UTF-8 | |
network --bootproto=dhcp --device=enp0s3 --ipv6=auto --activate --hostname=localhost | |
network --bootproto=dhcp --device=enp0s8 --ipv6=auto --activate |
This file contains hidden or 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
vim -c "set completeopt-=preview" -c "set expandtab" -c "set ts=4" -c "set ignorecase" |
This file contains hidden or 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
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 /usr/local/Cellar/go/1.3.1/libexec/src/make.bash | |
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 make build |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
[ :client ].each do |sym| | |
config.vm.define sym do |config| | |
config.vm.box = sym.to_s |