Ma rotfl [ May 16th, 2008 ] Posted in » News, Tech stuff

A bit of mod_rewrite

Se c’e una cosa che mi urta è chi mi linka le foto sul proprio sito, generalmente senza farmene parola.
Premesso che tutte le foto mie sono in CC come il resto dei contenuti di questo sito, scaricatele e mettetele dove più vi piace, ma per favore non usate la mia banda (che per altro non mi regalano)

Per tutti gli altri bastano due righette in .htaccess

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?freshnet.org(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://www.freshnet.org/wordpress [R,NC]

December 9th, 2005 | Leave a Comment

Firefox 1.5 for Ubuntu Breezy

Backport from Dapper here

NB As usual use at your own risk

December 8th, 2005 | Leave a Comment

915resolution version 0.5

Nuovo pacchetto deb per Debian Sarge e Ubuntu Hoary/Breezy di 915resolution versione 0.5

New deb package of 915resolution version 0.5 for debian/ubuntu
Should work in debian sarge and ubuntu hoary/breezy distributions, feedbacks are welcome

here

915resolution is a tool to modify the video BIOS of the 800 and 900 series Intel graphics chipsets. This includes the 845G, 855G, and 865G chipsets, as well as 915G, 915GM, and 945G chipsets. This modification is neccessary to allow the display of certain graphics resolutions for an Xorg or XFree86 graphics server.

915resolution’s modifications of the BIOS are transient. There is no risk of permanent modification of the BIOS. This also means that 915resolution must be run every time the computer boots inorder for it’s changes to take effect.

915resolution’s home page

December 6th, 2005 | Leave a Comment

Cambiare permessi ricorsivamente a file e directory

Vi è mai successo di dover cambiare permessi ricorsivamente a file e directory, e di dover assegnare permessi diversi ai file rispetto alle directory ?

Piccola grezza soluzione, ma che funge

#!/bin/sh

echo “Per cambiare ricorsivamente i permessi devi darmi tre parametri”
echo “La dir di partenza:”
read START_DIR
echo “Permessi per i file in ottale (es 640):”
read F_PERM
echo “Permessi per le dir in ottale (es 750):”
read D_PERM
echo “”
echo “******** ATTENZIONE ********”
echo “”
echo “Sto per cambiare i permessi ricorsivamente nelle dir $START_DIR”
echo “I nuovi permessi saranno $F_PERM per i file e $D_PERM per le dir”
echo “”
echo “Confermi questa scelta [y/n]?”
read ANS
case “$ANS” in

y | Y )

find . -type f -exec chmod $F_PERM ‘{}’ \; -or -type d -exec chmod $D_PERM ‘{}’ \;
echo “Fatto !”
;;
n | N )
exit
echo “Fatto !”
;;
* )
echo “Devi rispondere y o n !”
echo “Riprova, sarai piu fortunato”
;;
esac

December 4th, 2005 | Leave a Comment

Postgresql 8.1 for Debian Sarge

PostgreSQL is a powerful, open source relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness. It runs on all major operating systems

Backport from Debian Sid, packages for Debian Sarge here

Changelog for 8.1 version

Feedbacks are welcome

December 3rd, 2005 | 1 Comment

Dovecot 1.0a4 for Ubuntu Breezy and Debian Sarge

Dovecot is an open source IMAP and POP3 server for Linux/UNIX-like systems, written with security primarily in mind. Although it’s written in C, it uses several coding techniques to avoid most of the common pitfalls.

Dovecot can work with standard mbox and maildir formats and it’s fully compatible with UW-IMAP and Courier IMAP servers’ implementation of them as well as mail clients accessing the mailboxes directly. It’s easy to migrate from them to Dovecot. I have also plans to support storing mails in SQL databases.

Backports form Debian/Sid for Ubuntu Breezy here and for Debian Sarge here

Feedback are welcome

December 3rd, 2005 | Leave a Comment

Powered by WordPress | Blue Weed by Blog Oh! Blog | Entries (RSS) and Comments (RSS).