The Lounge

My Geektool Setup

Submitted by Yincakes, , Thread ID: 21995

Thread Closed

RE: My Geektool Setup

OP
This post was last modified: 23-06-2016, 12:03 PM by Yincakes
#3
23-06-2016, 11:16 AM
enmafia2 Wrote:
23-06-2016, 11:08 AM
StarButterfly Wrote:
2008 macbook running Snow Leopard

lol nice... and your youtube is random af lol
I don't own geektool, yet :hurr:

If you have a mac you can download Geektool hereprojects.tynsoe.org/en/geektool/download.php

You can get some good geeklets toowww.macosxtips.co.uk/geeklets/

[Image: 0f9a2a2cce.png]

Code:
#!/usr/bin/php
<?php

echo "\n";
$servers = array("nulledbb.com");

foreach ($servers as $server)
{
ini_set('default_socket_timeout', '05');
set_time_limit(5);
$f=@fopen('http://'.$server, 'r');
if ($f)
{
$r=fread($f,1000);
fclose($f);
  }
else
{
$r='';
}
echo $server.' is ';
if (strlen($r)>1)
{
echo "\033[0;32mONLINE\033[0;254;176;19m";
}
else
{
echo "\033[0;31mOFFLINE\033[0;254;176;19m";
}
echo "\n";
}
?>

when you put this into geektool it checks whether nulledbb is online
LOL

Users browsing this thread: 5 Guest(s)