Skip to content

Instantly share code, notes, and snippets.

View DaveM2011's full-sized avatar
🏠
Working from home

Dave M DaveM2011

🏠
Working from home
  • UK
View GitHub Profile
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
function Invoke-BatchFile
{
param([string]$Path, [string]$Parameters)
$tempFile = [IO.Path]::GetTempFileName()
## Store the output of cmd.exe. We also ask cmd.exe to output
## the environment table after the batch file completes
cmd.exe /c " `"$Path`" $Parameters && set " > $tempFile
## Go through the environment variables in the temp file.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> The Title of Your Page Goes Here </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="Your Name Goes Here">
<SCRIPT TYPE="text/javascript">
var apples = 5;
alert('There are currently ' + apples + ' apples!');
</SCRIPT>
location /phpmyadmin {
root /hub/core;
index index.php index.html index.htm;
rewrite ^/phpmyadmin/(.*)$ /phpmyadmin/index.php last;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
generator_trigger() {
level.trig_counter = 0;
thread gen_one();
}
gen_one() {
trig1 = getent("generator1", "targetname");
trig1 SetCursorHint( "HINT_NOICON" );
trig1 waittill( "trigger", players);
trig1 delete();
iprintlnbold("You found a teddy!");