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
$ ./service-monitor.py tcp devio.us:22 | |
$ |
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
$ ./service-monitor.py http <a href="http://devio.us/">http://devio.us/</a> | |
$ |
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
$ ./service-monitor.py tcp devio.us:23349 | |
Unable to connect to the service TCP devio.us:23349 | |
$ ./service-monitor.py http http://www.thispagedoesntexistevar.com/ | |
Unable to connect to the service HTTP http://www.thispagedoesntexistevar.com/ | |
$ |
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
#! /usr/bin/env python | |
from os import system | |
from urllib2 import urlopen | |
from socket import socket | |
from sys import argv | |
from time import asctime | |
def tcp_test(server_info): | |
cpos = server_info.find(':') |
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
$ ./service-monitor.py tcp devio.us:22 [email protected] | |
$ |
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
$ crontab -e |
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
*/5 * * * * /home/motoma/service-monitor.py http http://motomastyle.com/ [email protected] |
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 | |
# video2ipod conversion script | |
# Christopher Gilbert | |
# September 26, 2006 | |
# | |
# Usage: | |
# video2ipod infile outfile | |
if [ -z "$2" ]; then | |
echo $0 "infile outfile" |
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
class Database | |
{ | |
var $database_name; | |
var $database_user; | |
var $database_pass; | |
var $database_host; | |
var $database_link; |
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
function Database() | |
{ | |
$this->database_user = "motoma"; | |
$this->database_pass = "bI1dU5"; | |
$this->database_host = "localhost"; | |
$this->database_name = "dalDatabase"; | |
} |