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
- hosts: all | |
sudo: yes | |
tasks: | |
- apt: upgrade=yes update_cache=yes cache_valid_time=86400 | |
- apt: name={{ item }} state=installed | |
with_items: | |
- git | |
- etckeeper | |
- apt: name={{ item }} state=installed | |
with_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 | |
VAL_RPS_FLOW_CNT="32768" | |
VAL_RPS_SOCK_FLOW_ENTRIES="32768" | |
PROC_NUM=$(cat /proc/cpuinfo | grep -c ^processor) | |
VAL_RPS_CPUS=0 | |
if [ ${PROC_NUM:?} -eq 1 ] | |
then |
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 | |
yum -y groupinstall "Virtualization" "Virtualization Client" "Virtualization Platform" "Virtualization Tools" |
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
package main | |
import ( | |
"errors" | |
"fmt" | |
"log" | |
"math/rand" | |
"time" | |
) |
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@wweb ~]# cat /etc/*release | |
Amazon Linux AMI release 2014.03 | |
[root@web ~]# grep ^SE /etc/selinux/config /etc/sysconfig/selinux | |
/etc/selinux/config:SELINUX=enforcing | |
/etc/selinux/config:SELINUXTYPE=targeted | |
/etc/sysconfig/selinux:SELINUX=disabled | |
/etc/sysconfig/selinux:SELINUXTYPE=targeted | |
[root@web ~]# getenforce | |
Disabled |
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
baba@localhost ~ $ sudo grep CONFIG_MODULES /usr/src/linux/.config | |
CONFIG_MODULES_USE_ELF_RELA=y | |
CONFIG_MODULES=y | |
baba@localhost ~ $ sudo grep =m /usr/src/linux/.config | |
CONFIG_NF_NAT=m | |
CONFIG_NF_NAT_FTP=m | |
CONFIG_NF_NAT_IRC=m | |
CONFIG_NF_NAT_SIP=m | |
CONFIG_NETFILTER_XT_MARK=m | |
CONFIG_NETFILTER_XT_TARGET_LOG=m |
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
$ sudo fdisk -l | |
Disk /dev/sda: 31.5 GB, 31457280000 bytes | |
4 heads, 32 sectors/track, 480000 cylinders, total 61440000 sectors | |
Units = sectors of 1 * 512 = 512 bytes | |
Sector size (logical/physical): 512 bytes / 512 bytes | |
I/O size (minimum/optimal): 512 bytes / 512 bytes | |
Disk identifier: 0x00013818 | |
Device Boot Start End Blocks Id System |
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 | |
## Usage: | |
## sudo bash run_jmeter.sh test.jmx | |
JMETER="`dirname $0`/apache-jmeter-2.11/bin/jmeter" | |
NOW=$(date +%Y%m%d_%H%M) | |
export JVM_ARGS="-Xloggc:${NOW}/gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled" |
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
FROM centos | |
RUN yum -y update | |
RUN yum -y groupinstall core | |
RUN yum -y groupinstall base | |
RUN echo 'p@ssw0rd' | passwd --stdin root | |
RUN service sshd start | |
RUN service sshd stop | |
RUN touch /etc/sysconfig/network | |
RUN rm -f /etc/localtime ; ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime | |
RUN yum -y install gcc-c++ |
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
# basic setup | |
sudo apt-get -y install ibus-mozc nautilus-dropbox curl tmux vim vim-gnome compizconfig-settings-manager git mercurial build-essential clipit docker.io virtualbox vagrant gimp keepassx | |
sudo usermod -G docker -a `whoami` | |
sudo docker.io pull ubuntu | |
sudo docker.io pull centos | |
sudo apt-get -y install wine | |
# google chrome | |
firefox http://www.google.co.jp/intl/ja/chrome/browser/ |