This file contains 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/python | |
from socket import * | |
import struct,os,time,sys | |
# Script to set Linux hardware clock (/usr/sbin/hwclock) from an NTP | |
# time server. Run as "setclock.py" to simply print the time from | |
# the NTP server. Run as "setclock.py --set" to set the Linux | |
# hardware clock (as the super user, of course). | |
# Based on Simon Foster's simple SNTP client from ASPN Python cookbook. |
This file contains 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 | |
# coding: utf-8 | |
import os | |
def getdmi(): | |
all = [] | |
single = [] | |
for l in os.popen('/usr/sbin/dmidecode'): #replace dmidecode with yours. | |
l = l.strip() |
This file contains 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
server.modules = ( | |
"mod_alias", | |
"mod_cgi", | |
"mod_rewrite", | |
"mod_redirect", | |
"mod_access", | |
"mod_fastcgi", | |
"mod_accesslog" ) | |
var.prefix = "/usr/local/lighttpd" | |
var.mimetype = prefix + "/etc/mimetype.conf" |
NewerOlder