Guide in Python

Mer, 13/07/2011 - 21:01

Dmesg: mostare il tempo in format "human readable"

Inviato da ntropia

Per una qualche ragione c'e' bisogno di sbirciare il kernel log per vedere che cosa e' successo nel sistema recentemente. Il modo piu' rapido e ricorrere al comando dmesg, il cui output appare cosi':

$ dmesg  | tail
[  164.752163]   domain 1: span 0-3 level CPU
[  164.752165]    groups: 2-3 (cpu_power = 2048) 0-1 (cpu_power = 2048)
[ 1232.845461] usb 1-2: USB disconnect, address 3
[51142.172013] usb 1-2: new high speed USB device using ehci_hcd and address 5
[51142.304387] usb 1-2: New USB device found, idVendor=0424, idProduct=2504




Mar, 03/05/2005 - 14:38

BoTux - Bot in python per chat irc

Inviato da frafra

Bot per chat.Eccovi BoTux, un bot di mia creazione per chat. Ha anche un'interfaccia grafica. Dovete installare python e wxpython.

#! /usr/bin/env python
# -*- coding: UTF-8 -*-
 
""" Botux: bot in python creato da Frafra (francesco.it@gmail.com)
           con l'aiuto di C8E e di bornFreeThinker
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.