You are on page 1of 2

Rename-Item C:\Users\nhung\AppData\Local\Microsoft\Windows\INetCache\counters2.

dat
counters2.poo

http://ios.itgeeks.ir/PUB/S0ftWarE/VMware

Windows XP key
VCFQD-V9FX9-46WVH-K3CD4-4J3JM

(Create CPU spike Terminal Linux)


=================================
yes > /dev/null &

(To stop CPU spike)


===================
killall yes

2.1 For Windows Virtual Machines


The VBscript script below should be saved as cpubusy.vbs.
Start it by double clicking it and terminate it by ending the wscript.exe process
in Task Manager.

Dim goal
Dim before
Dim x
Dim y
Dim i
goal = 2181818

Do While True
before = Timer
For i = 0 to goal
x = 0.000001
y = sin(x)
y = y + 0.00001
Next
y = y + 0.01
WScript.Echo "I did three million sines in " & Int(Timer - before + 0.5) & "
seconds."
Loop

2.2 For Unix\Linux Virtual Machines


The Perl script below should be saved as cpubusy.pl.
Start it by opening a terminal window, changing to the directory where it is saved
and typing the following:

chmod 744 cpubusy.pl


./cpubusy.pl

Terminate it pressing CTRL-C.

#!/usr/bin/perl

$goal = 2181818;
while (TRUE) {
for ($i=0; $i<=$goal; $i++) {
$x = 0.000001;
$y = sin($x);
$y = $y + 0.00001;
}
next;
$y = $y + 0.01;
print "I did three million sines in ", time() - $before, " seconds!\n";
}

Amazon Lab 2 script

#!/bin/bash -ex
yum -y update
yum -y install httpd php mysql php-mysql
chkconfig httpd on
/etc/init.d/httpd start
if [ ! -f /var/www/html/lab2-app.tar.gz ]; then
cd /var/www/html
wget https://us-west-2-aws-training.s3.amazonaws.com/awsu-ilt/AWS-100-ESS/v4.2/lab-
2-configure-website-datastore/scripts/lab2-app.tar.gz
tar xvfz lab2-app.tar.gz
chown apache:root /var/www/html/rds.conf.php
fi

You might also like