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
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> | |
<name>cloudlet</name> | |
<uuid>c7a5fdbd-cdaf-9455-926a-d65c16db1801</uuid> | |
<memory>1048576</memory> | |
<currentMemory>1048576</currentMemory> | |
<vcpu>4</vcpu> | |
<cpu> | |
<topology sockets='1' cores='4' threads='1'/> | |
</cpu> | |
<os> |
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 | |
PATH=/bin:/usr/bin:/sbin:/usr/sbin | |
NEWTYP=ext4 | |
NEWMNT="/mnt/new-root" | |
OLDMNT="/mnt/old-root" | |
RUNLEVEL=`runlevel | awk '{print $2}'` | |
if [ $# -eq 1 ] | |
then | |
NEWDEV=$1 |
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
#include <stdio.h> | |
int good(int i) | |
{ | |
i++; | |
return i; | |
} | |
int not_good(int i) |
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/sh | |
# credential: http://www.bluegecko.net/amazon-web-services/ec2-persistent-boots-with-pivot-root/ | |
PATH=/bin:/usr/bin:/sbin:/usr/sbin | |
NEWDEV="/dev/xvdf1" | |
NEWTYP="ext4" | |
NEWMNT="/mnt/ebs" | |
OLDMNT="/mnt/old" | |
OPTIONS="noatime,rw" | |
SLEEP=1 |
NewerOlder