Un breve appunto per non dimenticare come abilitare la gestione dei profili colore in Firefox 3.
- Aprire un nuovo tab e digitare: about:config
- Cercare il flag: gfx.color_management.enabled
- Doppio clic per abilitare l'opzione
- Riavviare il browser
(define filesPattern)
(set! filesPattern (string-append "/home/a_dir_with_some_jpeg/" "*.jpg"))
(define arrayFilesList)
(set! arrayFilesList (file-glob filesPattern 1))
;
; Convert the array to a SCHEME list
;
(define filesList)
(define counter)
(set! counter 0)
(while (< counter (car arrayFilesList)) (set! filesList (cons (aref (cadr arrayFilesList) counter) filesList)) (set! counter (+ counter 1)) )
;
; Now you can use "car" and "cdr" on filesList
;
telnet 10.0.0.1
# show snmp
%SNMP agent not enabled
# configure terminal
# snmp-server community public RO
# snmp-server community private RW
* net-analyzer/net-snmp
Latest version available: 5.4
Latest version installed: [ Not Installed ]
Size of downloaded files: [no/bad digest]
Homepage: http://net-snmp.sourceforge.net/
Description: Software for generating and retrieving SNMP data
License: as-is BSD
snmpwalk -m CISCO-VTP-MIB -v 2c -c public 192.168.177.34 vtpVlanState
CISCO-VTP-MIB::vtpVlanState.1.1 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.2 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.3 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.4 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.5 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.6 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.7 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.10 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.12 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.15 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.16 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.20 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.21 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.22 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.23 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.24 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.25 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.28 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.1002 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.1003 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.1004 = INTEGER: operational(1)
[...]
#!/bin/bash
###################################
#
# Wed Jul 11 11:38:54 CEST 2007
#
# This script is used to generate
# network traffic statistics
#
# Author: Davide Restivo (xgutter@yahoo.it)
#
# Released under GPLv2
#
####################################
E_BAD_ARGS=65
# The default interface
INTF="eth0"
# Default output filename
TMP_FILE=`tempfile`
FILE_OUT="netmon-`basename $TMP_FILE`.out"
# Default delay measurement
TICK="1"
# Usage
function usage () {
echo "Please invoke this script with zero or three arguments."
echo ""
echo "Example:"
echo " $0"
echo ""
echo "where:"
echo "defaults to eth0"
echo "is automatically generated"
echo "is equal to 1 second"
}
# Let's check command line arguments
if [ $# -eq 0 ]
then
:
elif [ $# -eq 3 ]
then
# Setting parameters
INTF=$1
FILE_OUT=$2
TICK=$3
else
usage
exit $E_BAD_ARGS
fi
################
##### MAIN #####
################
echo "Seconds - Byte sent - Byte received" >> $FILE_OUT
SECONDS_COUNTER="0"
while true;
do
INITIAL_BYTE_SENT=`ifconfig eth0 |grep bytes|cut -d":" -f3|cut -d" " -f1`
INITIAL_BYTE_RECEIVED=`ifconfig eth0 |grep bytes|cut -d":" -f2|cut -d" " -f1`
sleep $TICK
BYTE_SENT=$((`ifconfig eth0 |grep bytes|cut -d":" -f3|cut -d" " -f1` - $INITIAL_BYTE_SENT ))
BYTE_RECEIVED=$((`ifconfig eth0 |grep bytes|cut -d":" -f2|cut -d" " -f1` - $INITIAL_BYTE_RECEIVED ))
TEMP_SECONDS_COUNTER=$(($SECONDS_COUNTER + $TICK))
SECONDS_COUNTER=$TEMP_SECONDS_COUNTER
echo "$SECONDS_COUNTER $BYTE_SENT $BYTE_RECEIVED" >> $FILE_OUT
done
This is a filesystem client based on the SSH File Transfer Protocol. Since most SSH servers already support this protocol it is very easy to set up: i.e. on the server side there's nothing to do. On the client side mounting the filesystem is as easy as logging into the server with ssh.
The idea of sshfs was taken from the SSHFS filesystem distributed with LUFS, which I found very useful. There were some limitations of that codebase, so I rewrote it. Features of this implementation are:
* Based on FUSE (the best userspace filesystem framework for linux ;-)
* Multithreading: more than one request can be on it's way to the server
* Allowing large reads (max 64k)
* Caching directory contents
# emerge -av sys-fs/sshfs-fuse
# sshfs user1@192.168.177.172:/home/user1 temp_dir
fusermount -u temp_dir






