Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Pushing buttons.

Pretty Please Mark Darkly pleasemarkdarkly

🎯
Pushing buttons.
View GitHub Profile
View startup-synology-config.sh
#!/bin/bash
### BEGIN INIT INFO
# Location: /usr/local/etc/rc.d
# Provides: Synology Custom Services
# Required-Start: hostname $local_fs
# Required-Stop:
# Should-Start:
# Default-Start: 1 2 3 4 5
# Default-Stop:
# Short-Description: Additional services start upon Synology DSM reboot
View startup-opt-file-perf.sh
#!/bin/ash
# Increase the read_ahead_kb to 2048 to maximise sequential large-file read/write performance.
# http://darencard.net/blog/2018-08-14-entware-synology/
# Put this in /usr/local/etc/rc.d/
# chown this to root
# chmod this to 755
# Must be run as root!
View startup-mounts.sh
#!/bin/bash
# Put this in /usr/local/etc/rc.d/
# chown this to root
# chmod this to 755
# Must be run as root!
SESSION=$(date +"%Y%m%d-%H%M")
SYSTEM_LOG="/root/synology-extra-config.${SESSION}.log"
VOLUME_MOUNTS="/volume1/systems/synology_918+/mounts"
View startup-entware.sh
#!/bin/bash
# symlinked location: /usr/local/etc/rc.d/entware-startup.sh
# location: /volume1/system/synology_918+/mounts/startup_scripts/entware_startup.sh
SESSION=$(`which date` +"%Y%m%d-%H%M")
SYSTEM_LOG="/root/synology-extra-config.${SESSION}.log"
[ ! -f "${SYSTEM_LOG}" ] && touch "${SYSTEM_LOG}"
function do_start () {
View chroot-start-stop-status
#!/bin/sh
# https://gist.github.com/82d8730e69a501694d7c3a15233b29c9 / https://gist.githubusercontent.com/pleasemarkdarkly/82d8730e69a501694d7c3a15233b29c9/raw/5a39090a55c5b552a787e1d9140960432514c3b5/chroot-start-stop-status
edit_chroot_start_stop_status () {
echo gist-paste -u 82d8730e69a501694d7c3a15233b29c9
nano ./chroot-start-stop-status
gist-paste chroot-start-stop-status -u 82d8730e69a501694d7c3a15233b29c9
echo $0_
}
View Brewfile
tap "acrogenesis/macchanger"
tap "aykamko/tag-ag"
tap "brewsci/bio"
tap "caskroom/cask"
tap "caskroom/drivers"
tap "caskroom/fonts"
tap "cliutils/apple"
tap "elastic/tap"
tap "homebrew/bundle"
tap "homebrew/cask"
View ya-mon-installer.sh
#!/bin/sh
##########################################################################
# Yet Another Monitor (YAMon)
# Copyright (c) 2013-present Al Caughey
# All rights reserved.
#
# Script to download, install & setup YAMon3.x
#
# Updated: 2020-01-11 - added L flag to follow symlinks when checking read permissions (about line 95)
View install_darkstat.sh
#!/bin/bash
# https://gist.github.com/865ceba0e95680bee00f213efec9e136
# https://gist.githubusercontent.com/pleasemarkdarkly/865ceba0e95680bee00f213efec9e136/raw/c9cfe3deb0e3ebf3b649b71f543742282cee1b6a/install_darkstat.sh
install_darkstat() {
sudo apt-get install darkstat
echo "/etc/darkstat/init.cfg"
wget https://gist.githubusercontent.com/pleasemarkdarkly/1e5101f1541e4ec3ad3c3dc1d6cd8f54/raw/f846091cef8ac0158746813e3bbe7c048f9b20cb/init.cfg
mv -v ./init.cfg /etc/darkstat/init.cfg
View init.cfg
# https://gist.github.com/1e5101f1541e4ec3ad3c3dc1d6cd8f54
# https://gist.githubusercontent.com/pleasemarkdarkly/1e5101f1541e4ec3ad3c3dc1d6cd8f54/raw/f846091cef8ac0158746813e3bbe7c048f9b20cb/init.cfg
# Turn this to yes when you have configured the options below.
START_DARKSTAT=yes
# Don't forget to read the man page.
# You must set this option, else darkstat may not listen to
# the interface you want
View docker-functions.sh
#####################################
# curl -Lo /tmp/docker-functions http://j.mp/docker-functions && source /tmp/docker-functions
#####################################
update_docker_functions () {
echo https://gist.github.com/35773eeef6b0f77dfdbea441effa1440
gist-paste docker-functions.sh -u 35773eeef6b0f77dfdbea441effa1440
}
DOCKER_FUNCTION_VERSION=0.9
You can’t perform that action at this time.