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
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - | |
echo "deb http://pkg.jenkins-ci.org/debian binary/" | sudo tee /etc/apt/sources.list.d/jenkins.list | |
sudo apt-get update | |
sudo apt-get install jenkins |
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
dd if=/dev/cdrom of=~/foo.iso |
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 | |
cd /usr/local/src | |
wget http://developer.axis.com/download/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz | |
tar zxvf apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz | |
cd apps/sys-utils/start-stop-daemon-IR1_9_18-2 | |
gcc start-stop-daemon.c -o start-stop-daemon | |
cp start-stop-daemon /usr/sbin/ |
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
cat helloworldbin | ssh server01 'sh -c '"'"'tmp=$(mktemp -d); cat > $tmp/helloworldbin; chmod +x $tmp/helloworldbin; $tmp/helloworldbin; rm -fr $tmp '"'" |
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
sudo apt-get install qemu-utils | |
sudo modprobe nbd | |
sudo qemu-nbd --connect=/dev/nbd0 /full/path/to/qcow2/image/file | |
sudo mkdir /mnt/ubuntu | |
sudo mount /dev/nbd0p1 /mnt/ubuntu |
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
VPNCMD="sudo /usr/local/vpnserver/vpncmd localhost:443 /SERVER /CMD" | |
# Create virtual hub | |
${VPNCMD} HubCreate ${HubName} /PASSWD:admin | |
# Create local bridge(connect to physical device) | |
${VPNCMD} BridgeCreate ${HubName} /DEVICE:${phy_dev_name:-eth0} | |
# Create local bridge(create tap interface) |
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
wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz -O /tmp/go.tar.gz | |
pushd /tmp | |
tar xf go.tar.gz | |
sudo mv go /usr/local/go | |
sudo rm -fr /etc/alternatives/go | |
sudo ln -s /usr/local/go/bin/go /etc/alternatives/go | |
popd |
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
sudo su -s /bin/bash - git |
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 | |
git config --global core.editor 'vim -c "set fenc=utf-8"' | |
ls ~/.config/git 2>/dev/null >/dev/null || mkdir -p ~/.config/git | |
cat << __EOF__ > ~/.config/git/gitignore | |
.idea | |
tags | |
TAGS |
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
$ ks pkg list # Packageの一覧を確認する。 | |
REGISTRY NAME VERSION INSTALLED ENVIRONMENTS | |
======== ==== ======= ========= ============ | |
helm-stable acs-engine-autoscaler 2.2.0 | |
helm-stable aerospike 0.1.7 | |
helm-stable anchore-engine 0.2.0 | |
...(すごく多いので略 | |
helm-stable risk-advisor 2.0.4 | |
helm-stable rocketchat 0.1.3 | |
helm-stable rookout 0.1.0 |
NewerOlder