Skip to content

Instantly share code, notes, and snippets.

View ricco386's full-sized avatar

Richard von Kellner ricco386

View GitHub Profile
@ricco386
ricco386 / fstrim.service
Created June 30, 2017 14:31
Systemd timer for fstrim. Usage: systemctl enable fstrim.timer
# /etc/systemd/system/fstrim.service
# Called by /usr/lib/systemd/system/fstrim.timer from util-linux
# Add `-v` flag so that results can be reviewed in jouranctl
[Unit]
Description=Discard unused blocks (for SSD Drives)
[Service]
Type=oneshot
ExecStart=/usr/sbin/fstrim -av
@ricco386
ricco386 / btrfs-scrub-pictures
Last active July 5, 2022 07:20
Systemd timer for BTRFS Scrub. Usage: systemctl enable btrfs-scrub@pictures.timer
# /etc/conf.d/btrfs-scrub-pictures
mountpoint=/data/pictures
### Keybase proof
I hereby claim:
* I am ricco386 on github.
* I am ricco (https://keybase.io/ricco) on keybase.
* I have a public key whose fingerprint is 4D88 E2C9 AF0F E0FA 807C C84E 1314 3683 A9BC CA2E
To claim this, I am signing this object:
@ricco386
ricco386 / btsync
Created April 26, 2013 13:45
Linux Daemon for BitTorrent Sync. This shell script takes care of starting and stopping btsync. Written in Fedora, can be used in /etc/init.d/ to start btsync at boot.
#!/bin/bash
#
# btsync This shell script takes care of starting and stopping btsync
#
# chkconfig: 2345 20 80
# description: btsync is BitTorrent Sync program which allows you \
# to synchronize directories between computers.
# processname: btsync
# Source function library.