Instantly share code, notes, and snippets.

View virus-scan.sh
#!/bin/bash
#
# Watch download directory and scan downloaded files with ClamAV
#
# Check if works by downloading:
# https://secure.eicar.org/eicar_com.zip
#
# Original script by Fitzcarraldo
# https://fitzcarraldoblog.wordpress.com/2016/02/20/\
# automatically-detecting-files-placed-in-my-downloads-directory-in-\
View sync-entropy-files.sh
#!/bin/bash
# sync-entropy-files.sh
# Copyright Reuben D'Netto 2014. Published under Apache 2.0 license.
# This script updates the portage files used in Sabayon so that entropy and portage don't step on each other's feet
BUILD_DIR="/var/cache/sabayon-build"
ARCH=$(uname -m)
[[ "$ARCH" == "i686" || "$ARCH" == "x86_64" ]] && ARCH="intel"