Skip to content

Instantly share code, notes, and snippets.

@svantoviit
svantoviit / sync-entropy-files.sh
Last active October 10, 2015 22:55 — forked from rdnetto/sync-entropy-files.sh
Script for updating Portage files in Sabayon
#!/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"
@svantoviit
svantoviit / virus-scan.sh
Last active December 19, 2023 09:33
Watch download directory and scan downloaded files with ClamAV
#!/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-\