duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
osd_data_size = 6 | |
osd_journal_size = 6 | |
osd_path = '/d02/vagrant/virtualbox-ceph-disks' | |
hosts = { | |
'mon-1' => { | |
'ip' => '10.253.60.151', 'cpus' => 1, 'memory' => 1024, 'autostart' => true, | |
'data_disk_size' => osd_data_size * 1024, 'journal_disk_size' => osd_journal_size * 1024 }, | |
} |
#!/bin/sh | |
wget https://gist.githubusercontent.com/OpakAlex/6ffc1ba4bf10312a9635/raw/0a870c574e42f10e7acd52d88822e5f5ec6c2972/bootsync.sh -O /tmp/bootsync.sh | |
docker-machine scp /tmp/bootsync.sh lab:/tmp/bootsync.sh >/dev/null | |
docker-machine ssh lab "sudo mv /tmp/bootsync.sh /var/lib/boot2docker/bootsync.sh" >/dev/null |
#!/bin/sh | |
sudo umount /Users | |
sudo /usr/local/etc/init.d/nfs-client start | |
sleep 1 | |
sudo mount.nfs 192.168.99.1:/Users /Users -v -o rw,async,noatime,rsize=32768,wsize=32768,proto=udp,udp,nfsvers=3 | |
grep '\-\-dns' /var/lib/boot2docker/profile || { | |
echo 'EXTRA_ARGS="$EXTRA_ARGS --dns 192.168.99.100 --dns 8.8.8.8 --dns 8.8.4.4"' | sudo tee -a /var/lib/boot2docker/profile | |
} | |
echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" | sudo tee /etc/resolv.conf |
# curl -LO http://wiki.alpinelinux.org/cgi-bin/dl.cgi/v3.3/releases/x86_64/alpine-3.3.1-x86_64.iso | |
curl -LO http://wiki.alpinelinux.org/cgi-bin/dl.cgi/v3.3/releases/x86/alpine-3.3.1-x86.iso | |
# create hdd image (8GB) | |
dd if=/dev/zero of=hdd.img bs=1g count=8 | |
# extract kernel and initramfs | |
brew install cdrtools | |
isoinfo -i alpine-3.3.1-x86.iso -J -x /boot/initramfs-grsec > initramfs-grsec | |
isoinfo -i alpine-3.3.1-x86.iso -J -x /boot/vmlinuz-grsec > vmlinuz-grsec |
#!/bin/sh | |
# Install coffeescript cli | |
npm -g install coffee-script | |
# Convert all coffeescript files to javascript | |
find . -name "*.coffee" -exec coffee --no-header --bare -c {} \; | |
# Optionally delete original coffee files | |
find . -name "*.coffee" -exec rm {} \; |
#!/bin/sh | |
exec qemu-system-i386 -enable-kvm -cpu host -m 1024 -vga std -soundhw ac97 -net nic,model=rtl8139 \ | |
-net user -drive file=winxp.img,format=raw -drive file=/usr/share/virtio/virtio-win.iso,media=cdrom |
<?php | |
class ActiveRecord extends CActiveRecord | |
{ | |
/** | |
* Based on ActiveRecord delete() but instead of actually deleting it sets an attribute to deleted=true. | |
* Others have chosen to implement this as a behavior; this should be standard AR practice, but in order | |
* to maintain backwards compatibility with a few models which use delete() to actually delete models it must not be overridden (delete). | |
* | |
* Performs a logical delete. |
Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.
However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.