This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Recursive deduplication at %I | |
Documentation=man:duperemove(8) | |
Documentation=https://github.com/markfasheh/duperemove.git | |
Conflicts=shutdown.target rescue.target rescue.service emergency.service | |
After=local-fs.target | |
Before=shutdown.target | |
[Service] | |
Type=simple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
format="deb" | |
platform="linux" | |
while getopts ":f:p:h" opt; do | |
case $opt in | |
f) format="$OPTARG" ;; | |
p) platform="$OPTARG" ;; | |
h) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
KEEP_DAYS=15 | |
VG="vg" # LVM volume group we are snapshoting | |
LV="data-volume-name" # Name of LVM-volume to take a snapshot of | |
BACKUP_PREFIX="snap-${LV}-" # Prefix of snapshot volume name. | |
SIZE=10%ORIGIN # Amount of disk space to allocate for the snapshot | |
# Create new snapshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On Hyper-V and Xen Virtual Machines we want to add memory and cpus as soon as they appear | |
ATTR{[dmi/id]sys_vendor}=="Microsoft Corporation", ATTR{[dmi/id]product_name}=="Virtual Machine", GOTO="vm_hotadd_apply" | |
ATTR{[dmi/id]sys_vendor}=="Xen", GOTO="vm_hotadd_apply" | |
GOTO="vm_hotadd_end" | |
LABEL="vm_hotadd_apply" | |
# Memory hotadd request | |
SUBSYSTEM=="memory", ACTION=="add", DEVPATH=="/devices/system/memory/memory[0-9]*", TEST=="state", ATTR{state}!="online", ATTR{state}="online" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# shellcheck disable=SC1091,SC2086,SC2181 | |
# | |
# Copyright (c) 2013-2023 OpenMediaVault Plugin Developers | |
# | |
# This file is licensed under the terms of the GNU General Public | |
# License version 3. This program is licensed "as is" without any | |
# warranty of any kind, whether express or implied. | |
# |
Since the addition of "doze" on recent versions of Android, notifications of new messages from Gmail can have a delay (from several minutes to a few hours). More here. Since Android 10, it is possible to add gmail to the white-list of "doze", without this setting being forgotten at each startup.
Verify that you are connected to your device with adb by using the following command:
adb devices
NOTE: If adb replies that you are not authorized, you must authorize the connection from your Android device.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
' 4 variables below require configuration. | |
' Once you get this working, refactor, etc. | |
Sub CDO_Mail_Small_Text_2() | |
Dim user As String | |
Dim pass As String | |
Dim port As Integer | |
Dim receiverEmail As String | |
Dim fromEmail As String | |