As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |
| #!/usr/bin/env ruby | |
| require 'benchmark' | |
| # require libs here | |
| iterations = ARGV[0]||100000 # pass in iterations or | |
| #!/bin/bash | |
| if [ "$1" != "report" ]; then | |
| echo "Usage:" >&2 | |
| script="`basename $0`" | |
| echo " nohup $script report > /var/log/memcache-stats.log &" >&2 | |
| exit 1 | |
| fi | |
| GRAPHITE_SERVER=localhost |
| file_to_disk = './tmp/large_disk.vdi' | |
| Vagrant::Config.run do |config| | |
| config.vm.box = 'base' | |
| config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024] | |
| config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk] | |
| end |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| #!/bin/bash | |
| # options: | |
| # remove stopped containers and untagged images | |
| # $ dkcleanup | |
| # remove all stopped|running containers and untagged images | |
| # $ dkcleanup --reset | |
| # remove containers|images|tags matching {repository|image|repository\image|tag|image:tag} | |
| # pattern and untagged images | |
| # $ dkcleanup --purge {image} |
sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
dpkg -i vagrant_1.6.5_x86_64.deb
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround
exit