Monthly archive

awstatic.sh - Generate static awstats reports

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
 
# samu 2010-02-23
 
STATIC_DEST="/var/www/awstats/static"
 
cat > "$STATIC_DEST/index.html" << EOF
<html><head><title>AWSTATS - Static</title></head><body>
<h1>AWSTATS - Static Statistics</h1>
<ul>
EOF
 
for conf in $( ls /etc/awstats/ | grep "^awstats\..*\.conf\$" | sed "s/^awstats\.\(.*\).conf\$/\1/" ); do
  echo "Generating static pages for $conf ..."
  if [ ! -e "${STATIC_DEST}/${conf}" ]; then
    mkdir -p "${STATIC_DEST}/${conf}"
  fi

PC-MIDI interface adapter schematic

PC-MIDI interface adapter (MIDI cable) schematic pinout and wiring @ pinouts.ru

Added to TODOlist :)

HOWTO: File Associations (Gnome 2.10) [Archive] - Ubuntu Forums

It seems to work :)

Relevant files to edit file association:

/usr/share/applications/defaults.list
/usr/share/applications/mimeinfo.cache
~/.local/share/applications/

aoe-interfaces(8) - Linux man page

WinAoE - AoE Windows Driver

ATA over Ethernet for Windows

Link sharer on Drupal

I just wanted something like the "share on facebook" button, but to post links on my (this) blog. I thought I would have to write a module to do that but.. no, Drupal itself allows us to do that directly :)

First, the CCK "Bookmark" Content

First of all, I created a CCK content named "bookmark". Here is the exported CCK code.
Download Bookmark CCK here

Second: the "bookmark" button

Yep, I copied this from the facebook "SHARE IT" button.. :)

Who Am I?

~redShadow~ A.K.A. Samuele Santi is an Italian Open Source developer, currently working as a freelance developer, mainly in the web applications sector. Favourite programming languages: PHP and, of course, Python!

arduino (1) cars (1) database (3) camera mia (1) address book (2) blender (3) archive (1) cartoons (1) doku (1) cryptography (1) bash (11) awstats (3) Drupal (21) circuits (1) cocktails (1) debian (1) dmcrypt (1) 2v (1) citroen (1) contact manager (1) Drupal Forms (1) documentation (2) backup (3) blogroll (7) C++ (2) caos (1) aoe (1) apt (1) e-mail (2) audio (1) development (11) alcool (1) apache (1) algorythms (1) aircrack (1) como lake rovers (1) debug (1) 3d (3) curl (1) code (3)