Bing Wallpaper and Lockscreen script

Here is a simple script to update your wallpaper and your lockscreen every two hours!
Enjoy!

#!/bin/bash

# Bing wallpapers
# Cesário Garcia Mil-Homens
# cesario@cesariogarcia.com
# https://www.cesariogarcia.com

# 1. Execute this script the first time and set "bingwallpaper.jpg" as wallpaper and lockscreen
# 2. Config $wallpaperPath (line 13 of this script) for the full path of where you want "bingwallpaper.jpg" to be (it should be on the user Pictures folder)
# 3. On the terminal execute the following script, this will check for new updates every two hours
# crontab -l | { cat; echo "0 */2 * * * /bin/bash /home/cesario/Programs/bingwallpapers.sh >/dev/null 2>&1"; } | crontab -

wallpaperPath="/home/cesario/Pictures"

wget -q --spider http://google.com

if [ $? -eq 0 ]; then
    echo "Online"
	imageName=$(curl -s "https://www.bing.com/HPImageArchive.aspx?format=xml&idx=0&n=1&mkt=en-US" | grep -o -m 1 "/az/hprichbg/rb/.*._1366x768.jpg")
    prefix="/az/hprichbg/rb/";
	imageName=${imageName#$prefix};
	suffix="_1366x768.jpg";
	imageName=${imageName%$suffix};
		if [ -e $wallpaperPath"/"$imageName"_1366x768.jpg" ]
		then
			echo "$imageName found."
		else
			echo "$imageName not found."
			wget "https://www.bing.com/az/hprichbg/rb/"$imageName"_1366x768.jpg" -P $wallpaperPath
			cp $wallpaperPath"/"$imageName"_1366x768.jpg" $wallpaperPath"/"bingwallpaper.jpg
		fi
else
    echo "Offline"
fi

Transmission Peer Blocklist for Windows – TiBL4Win – v1.0

Just copy the code below to script.bat to where you want, execute as administrator, this will update the transmission blocklist with ips from Peer Block (http://www.peerblock.com/).

Just follow the instructions below in the configuration to download wget and gzip.

::This script creates the same lists as peerblock http://www.peerblock.com/, it outputs a file that you
::can use on Transmission automatically.
::This script was created by Cesário Garcia Mil-Homens - http://www.cesariogarcia.com just for the fun.
::TiBL4Win - v1.0

::CONFIGURATION - WARNING THE DIRECTORIES SHOULD ALREADY EXIST.

::In order for this script to work wget.exe and gzip.exe should be in the tmp directory do not remove them
::Download wget from: https://eternallybored.org/misc/wget/
::Download gzip from: http://gnuwin32.sourceforge.net/packages/gzip.htm
::Setup Transmission Blocklist folder.
set destination_folder="%appdata%\transmission\blocklists"

::DO NOT EDIT BELOW THIS LINE unless you know what you are doing
pushd "%~dp0"
cd tmp
wget -O - "http://list.iblocklist.com/?list=bt_ads&fileformat=p2p&archiveformat=gz" > bt_ads.txt.gz
wget -O - "http://list.iblocklist.com/?list=bt_level1&fileformat=p2p&archiveformat=gz" > bt_level1.txt.gz
wget -O - "http://list.iblocklist.com/?list=bt_spyware&fileformat=p2p&archiveformat=gz" > bt_spyware.txt.gz
gzip -d *.gz
copy *.txt lists
copy lists %destination_folder%
del lists
del *.txt
del *.gz

Wikimedia Foundation

Mais uma vez, a Wikimedia Foundation pretende obter os $6.000.000 necessários para a manutenção da wikipédia. Tal como o fundador da wikipédia, Jimmy Wales, diz temos em nosso poder uma das mais poderosas ferramentas existentes até ao nosso dia, uma enciclopédia com todo o conhecimento da humanidade. A meu ver uma sociedade mais justa só se constrói assim, quando todos tiverem acesso ao conhecimento. Esta é sem dúvida a Biblioteca de Alexandria do século XXI, ao longo dos oito anos de existência já foram produzidos mais de onze milhões de artigos em 265 línguas e todos os meses recebe mais de 275 milhões de visitas. Contribua também para este projecto, eu já o fiz.
Wikipedia Affiliate Button

Actualização Fedora 8

Fedora 8

O Servidor foi hoje actualizado (24-11-2007), entre as 22h e as 24h, para o Fedora 8. Desde já se pode constatar uma maior velocidade em relação à anterior versão Fedora 7, a nova versão veio ainda corrigir alguns dos problemas de segurança mais críticos. Inicialmente tive alguns problemas com a instalação do qmail, esta nova versão parece não possuir pacotes importantes para a sua instalação.

Como clonar um cartão de crédito

O vídeo seguinte demonstra como devemos estar sempre alerta quando efectuamos um pagamento com um cartão de crédito. As fraudes com cartões de crédito são cada vez mais comuns, tendo este género de crime vindo a aumentar. Estima-se que de oito em oito segundos, na Inglaterra, exista uma transacção fraudulenta com um cartão. No último ano estes crimes, causaram 629,15 milhões de euros de prejuízo a bancos e seguradoras.