https://daringfireball.net/projects/markdown/syntax#precode
syntax
\*literal asterisks\*
output
*literal asterisks*
https://daringfireball.net/projects/markdown/syntax#precode
syntax
\*literal asterisks\*
output
*literal asterisks*
| # | |
| # main.py | |
| # GitPyBackup | |
| # | |
| # Created by Jarrod Norwell on 07/10/2023. | |
| # | |
| """ | |
| Because the user specified only has 40~ repositories I've made this as basic as possible, | |
| just change the username and repo_count to get started, it'll download all repos into the cwd |
| #!/bin/sh | |
| # This script is to be used in combination with Synology Autorun: | |
| # - https://github.com/reidemei/synology-autorun | |
| # - https://github.com/Jip-Hop/synology-autorun | |
| # | |
| # You need to change the task_id to match your Hyper Backup task. | |
| # Get it with command: more /usr/syno/etc/synobackup.conf | |
| # | |
| # I like to keep "Beep at start and end" disabled in Autorun, because I don't |
My Synology DS218+ runs with a single SSD disk that has an operating temperature range of 0–70 °C, which is common for SSDs. Synology, however, has a default shutdown temperature of 61 °C, probably due to HDDs and some lazy programming.
I'm a very light user of NAS – all I want is a network attached storage and silence. My DS218+ has one 2 TB SSD disk in it and I've changed the system fan for a quieter / slower one.
Everything runs fine but about once in a month, I get this notification:
[Synology DS218+]Synology shut down due to disk overheating. >
| #!/usr/bin/env bash | |
| # shellcheck disable=SC1083,SC2054,SC2121,SC2207 | |
| if [[ $1 == "--debug" ]]; then | |
| set -x | |
| export PS4='`[[ $? == 0 ]] || echo "\e[1;31;40m($?)\e[m\n "`:.$LINENO:' | |
| fi | |
| getdriveinfo() { |
| #!/usr/bin/env bash | |
| # Get Synology model reliably | |
| unique=$(get_key_value /etc/synoinfo.conf unique | cut -d'_' -f3) # returns 213+ | |
| echo "unique: $unique" | |
| model=$(cat /proc/sys/kernel/syno_hw_version) # returns DS213pv10-j | |
| echo "model: $model" |
| #!/usr/bin/env bash | |
| # shellcheck disable=SC2016,SC2012 | |
| Script=Script_Name | |
| bin=bin | |
| config=bin/config | |
| # TODO |
| #!/usr/bin/env bash | |
| #------------------------------------------------------------------------- | |
| # https://gist.github.com/007revad | |
| # Script verified at https://www.shellcheck.net/ | |
| #-------------------------------------------------------------------------- | |
| # Note: The echo lines are just for verifying it's doing what it should | |
| #-------------------------------------------------------------------------- | |
| path="~/plex_sync_test" | |
| path_bak="~/plex_sync_bak_test" |
| #!/usr/bin/env sh | |
| #-------------------------------------------------------------------------------------- | |
| # A script to create docker-compose.yml files from running docker containers. | |
| # | |
| # Script can be run with a container name parameter to only process that container: | |
| # sudo -s docker-autocompose.sh plex | |
| # | |
| # Or with no parameter, or the "all" parameter, to process all running containers: | |
| # sudo -s docker-autocompose.sh all | |
| # |
| #!/usr/bin/env bash | |
| #----------------------------------------------------------- | |
| # Enable, disable or show current HDDs' write cache setting | |
| # https://gist.github.com/007revad | |
| # | |
| # Run in a shell with: | |
| # sudo hdd_writecache.sh | |
| #----------------------------------------------------------- | |
| # If Linux has more than 26 HDDs it names the extra ones sdaa, sdab, sdac etc |