<commit_before><?php 
	$passwords = array("<PASSWORD>","<PASSWORD>","<PASSWORD>","<PASSWORD>","<PASSWORD>","<PASSWORD>","<PASSWORD>","password","<PASSWORD>","<PASSWORD>");
	$password = array_rand($passwords);
	$host = gethostbyaddr($_SERVER['REMOTE_ADDR']);
	$host = explode(".",$host);
	if($host[1]=="stunet"){
		$device = substr($host[0],0,3);
		$user = substr($host[0],3);
	 	$data = array();
		//$data = Net_Finger::query("central.aber.ac.uk","dog2");
	   exec("finger ".$user."@central",$data);   
	   //var_dump($data);
   	$line = $data[5];
   	$line = explode(":",$line);
		//var_dump($line);
		$name=$line[2];
		$name=explode(" ",$name);
		$name=trim($name[1]);
	} else {
		$user = "your_username";
		$name = "you";
	}
?><!DOCTYPE html>
<html>
	<head>
		<title>8021.X</title>
		<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="guide.css">
	</head>
	<body>
		<h1>Zuzak's ten step guide to get <?php echo $name; ?> on the 'net!</h1>
		<span class="subtitle">Woo!</span>
		
		<ol id="steptostep">
			<li>
				First, get <span class="command">wpa_supplicant</span> installed and stuff.
				If you're feeling lazy, get <span class="command">NetworkManager</span> or <span class="command">wicd</span> running instead.
			</li>
			<li>
				You can get information on <span class="command">wpa_supplicant</span> by using <span class="command">man</span>.
				<pre class="command"><span class="prompt">#</span> <span class="command">man</span> wpa_supplicant</pre>
			<li>
				<span class="command">wpa_supplicant</span> stores its config in <span class="dir">/etc/wpa_supplicant/wpa_supplicant.conf</span>. Navigate to it:
				<pre class="command"><span class="prompt">#</span> <span class="command">cd</span> /etc/wpa_supplicant/</pre>
			</li>
			<li>
				Now get rid of the current config file if you want to:
				<pre class="command"><span class="prompt">#</span> <span class="command">rm</span> wpa_supplicant.conf</pre>
			</li>
			<li>
				Then edit it, either with <span class="command">nano</span>:
				<pre class="command"><span class="prompt">#</span> <span class="command">nano</span> wpa_supplicant.conf</pre><commit_msg>randomly generate a username when connecting somewhere other than stunet<commit_after><?php
 
	$passwords = array("<PASSWORD>","<PASSWORD>","<PASSWORD>","<PASSWORD>","<PASSWORD>","<PASSWORD>","<PASSWORD>","password","<PASSWORD>","<PASSWORD>");
	$password = array_rand($passwords);
	$host = gethostbyaddr($_SERVER['REMOTE_ADDR']);
	$host = explode(".",$host);
	if($host[1]=="stunet"){
		$device = substr($host[0],0,3);
		$user = substr($host[0],3);
	 	$data = array();
		//$data = Net_Finger::query("central.aber.ac.uk","dog2");
	   exec("finger ".$user."@central",$data);   
	   //var_dump($data);
   	$line = $data[5];
   	$line = explode(":",$line);
		//var_dump($line);
		$name=$line[2];
		$name=explode(" ",$name);
		$name=trim($name[1]);
	} else {
		$foo = 1;
		while($foo<4){
			$letter = chr(97 + mt_rand(0, 25));
			$user .= $letter;
			$foo++;
		} 
		$user .= rand(2,15);
		$name = "you";
	}
?><!DOCTYPE html>

<html>
	<head>
		<title>8021.X</title>
		<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="guide.css">
	</head>
	<body>
		<h1>Zuzak's ten step guide to get <?php echo $name; ?> on the 'net!</h1>
		<span class="subtitle">Woo!</span>
		
		<ol id="steptostep">
			<li>
				First, get <span class="command">wpa_supplicant</span> installed and stuff.
				If you're feeling lazy, get <span class="command">NetworkManager</span> or <span class="command">wicd</span> running instead.
			</li>
			<li>
				You can get information on <span class="command">wpa_supplicant</span> by using <span class="command">man</span>.
				<pre class="command"><span class="prompt">#</span> <span class="command">man</span> wpa_supplicant</pre>
			<li>
				<span class="command">wpa_supplicant</span> stores its config in <span class="dir">/etc/wpa_supplicant/wpa_supplicant.conf</span>. Navigate to it:
				<pre class="command"><span class="prompt">#</span> <span class="command">cd</span> /etc/wpa_supplicant/</pre>
			</li>
			<li>
				Now get rid of the current config file if you want to:
				<pre class="command"><span class="prompt">#</span> <span class="command">rm</span> wpa_supplicant.conf</pre>
			</li>
			<li>
				Then edit it, either with <span class="command">nano</span>:
				<pre class="command"><span class="prompt">#</span> <span class="command">nano</span> wpa_supplicant.conf</pre>
{'fraction_non_alphanumeric': 0.22088441330998249, 'fraction_numerical': 0.009632224168126095, 'mean_word_length': 4.910737386804657, 'pattern_counts': {'":': 2, '<': 150, '<?xml version=': 0, '>': 149, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2902482', 'n_tokens_mistral': 1864, 'n_tokens_neox': 1675, 'n_words': 334}