-
Shutdown vm and resize hard disk with VMWare to the desired size.
-
Figure out which partition to resize:
-
sudo lvdisplay% sudo lvdisplay --- Logical volume --- LV Path /dev/packer-ubuntu-14-vg/root LV Name root
-
VG Name packer-ubuntu-14-vg
Shutdown vm and resize hard disk with VMWare to the desired size.
Figure out which partition to resize:
sudo lvdisplay
% sudo lvdisplay
--- Logical volume ---
LV Path /dev/packer-ubuntu-14-vg/root
LV Name root
VG Name packer-ubuntu-14-vg
I hereby claim:
To claim this, I am signing this object:
| # Set up aws server to use as ssh proxy | |
| # open /etc/ssh/sshd_config with sudo | |
| # add 'GatewayPorts yes' anywhere | |
| # restart server | |
| # server: ec2-23-22-46-142.compute-1.amazonaws.com | |
| # server port: 12345 | |
| # server user: ubuntu | |
| # host port: 2222 |
| (def STRIKE_SCORE 10) | |
| (def SPARE_SCORE 10) | |
| (def MAX_FRAMES 10) | |
| (defn- max-frames? [frames] | |
| (>= (count frames) MAX_FRAMES) | |
| ) | |
| (defn- strike? [roll] | |
| (= STRIKE_SCORE roll) |
| (defn prime-factors [n] | |
| (loop [n n divisor 2 factors []] | |
| (if (< n 2) | |
| factors | |
| (if (= 0 (rem n divisor)) | |
| (recur (/ n divisor) divisor (conj factors divisor)) | |
| (recur n (inc divisor) factors) | |
| ) | |
| ) | |
| ) |