Skip to content

Instantly share code, notes, and snippets.

@PrplHaz4
PrplHaz4 / aptreinstallall.sh
Created March 31, 2022 01:01
aptreinstallall.sh
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
@PrplHaz4
PrplHaz4 / rsyncsysbackup.sh
Created March 30, 2022 22:09
rsyncsysbackup.sh
rsync -aAXv /sde --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /sdf
@PrplHaz4
PrplHaz4 / MCERegistrySettings.md
Created April 28, 2020 19:55
Windows Media Center Registry Keys

Registry settings that can be used to configure advanced Media Center options

Source: https://docs.microsoft.com/en-us/archive/blogs/astebner/registry-settings-that-can-be-used-to-configure-advanced-media-center-options Ref: http://windows-now.com/blogs/robert/windows-media-center-registry-tweaks.aspx

There have been a couple of posts by myself and Matt Goyer listing some of the registry keys and values that TweakMce changes behind the scenes to configure advanced options within Windows Media Center.

I decided that it would be worthwhile to post all of the registry keys and values that can be changed via TweakMce in case you are running a beta build of Windows Vista and cannot install the current version of TweakMce, or if you would like to change these Media Center settings without needing to download and install TweakMce or resort to a registry monitoring tool such as RegMon to reverse engineer these settings yourself.

Skip Forward Interval - Enter the number of milliseconds you want to skip forward w

@PrplHaz4
PrplHaz4 / omv5.sh
Last active June 29, 2020 18:44
openmediavault commands
# Debug Web Frontend
# https://github.com/openmediavault/openmediavault/issues/476#issuecomment-547301980
# First, open /etc/default/openmediavault and set OMV_DEBUG_EXTJS=yes
monit restart omv-engined
# Enable Wake-on-Lan for 5.2 Kernel
# https://github.com/openmediavault/openmediavault/issues/442#issuecomment-547871769
# create cron job that runs on startup
/usr/sbin/ethtool -s eth0 wol g
@PrplHaz4
PrplHaz4 / cloud-config.yml
Last active September 9, 2019 20:25
RancherOS cloud-config.yml samples
# start container-cron after user Docker is started #
# https://github.com/rancher/os/issues/2846
#cloud-config
rancher:
write_files:
- path: /etc/rc.local
permissions: "0755"
owner: root
content: |
@PrplHaz4
PrplHaz4 / sysctl -a
Created July 12, 2019 15:28
RancherOS v1.5.3 sysctl variable list (sysctl -a)
$ sysctl -a | more
abi.vsyscall32 = 1
debug.exception-trace = 1
debug.kprobes-optimization = 1
dev.cdrom.autoclose = 1
dev.cdrom.autoeject = 0
dev.cdrom.check_media = 0
dev.cdrom.debug = 0
dev.cdrom.info = CD-ROM information, Id: cdrom.c 3.20 2003/12/17
@PrplHaz4
PrplHaz4 / traefik-help.txt
Created June 10, 2019 20:11
Traefik command line arguments (docker run traefik --help)
$ docker run traefik --help
traefik is a modern HTTP reverse proxy and load balancer made to deploy microservices with ease.
Complete documentation is available at https://traefik.io
Usage: traefik [flags] <command> [<arguments>]
Use "traefik <command> --help" for help on any command.
Commands:
@PrplHaz4
PrplHaz4 / gist:6970887
Last active November 11, 2016 12:40
Creating a confirmation dialog box for a Yii submit button (CHtml::submitButton, CHtml::button, YiiBooster TbButton)
// YiiBooster TbButton
$this->widget('bootstrap.widgets.TbButton',array(
'label'=>'Make some action!',
'buttonType'=>'submit',
'visible'=>true,
'type' => 'primary',
'size' => '',
'icon' => 'ok',