-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added: * Add git default global configuration settings. * Sphinx-collapse for collapsing README.md in ansible role listings. * Ansible role table for config table. * Named method for badges, enabling custom badge links. Changed: * Update sphinx dependencies. * Migrate docs repository to use exported docs. * Updated service templates for ansible. See radarr for reference. * All docs repo migrated to this repository and updated. * Moved game documentation to steam role and cleaned up duplication. Removed: * All docker references / documentation. It now generic with ansible specific information for the provided role. * Docker SSH chroot instructions (docker deprecated). * Airsonic docker service. * Beets docker service. * Digikam docker service. * git-webhook-receiver service. * signal ssh notifier service. * xenserver-xcpng hypervisor. * kvm hypervisor. * docker container service. * service-template, all are standardized now to radarr. * docker-mailserver, superceeded by ansible mail role. * docker-dnsrobocert, superceeded by acme (dnsrobocert) ansible role.
- Loading branch information
Showing
453 changed files
with
967,511 additions
and
3,055 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
docs/_downloads/15c54412c941ddeb185dc7f123a17079/remove-edge.cmd
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
REM Move to script dirrectory for working directory and remove edge. | ||
REM Requires install_wim_tweak to be in the path. | ||
@echo off | ||
cd /d "%~dp0" | ||
echo Uninstalling Microsoft Edge ... | ||
|
||
install_wim_tweak.exe /o /l | ||
install_wim_tweak.exe /o /c Microsoft-Windows-Internet-Browser-Package /r | ||
install_wim_tweak.exe /h /o /l | ||
|
||
echo Reboot to apply changes. | ||
pause |
2 changes: 2 additions & 0 deletions
2
docs/_downloads/1e15ca411336d0c9c68f2dc674a4b42e/config.xlaunch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<XLaunch WindowMode="MultiWindow" ClientMode="NoClient" LocalClient="False" Display="-1" LocalProgram="xcalc" RemoteProgram="xterm" RemotePassword="" PrivateKey="" RemoteHost="" RemoteUser="" XDMCPHost="" XDMCPBroadcast="False" XDMCPIndirect="False" Clipboard="True" ClipboardPrimary="True" ExtraParams="" Wgl="True" DisableAC="False" XDMCPTerminate="False"/> |
4 changes: 4 additions & 0 deletions
4
docs/_downloads/250648f23a464d38152bd439f3ab42ef/enable-meltdown-spectre-update.reg
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Windows Registry Editor Version 5.00 | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat] | ||
"cadca5fe-87d3-4b96-b7fb-a231484277cc"=dword:00000000 |
23 changes: 23 additions & 0 deletions
23
docs/_downloads/3b0331ad899e8fbaf7e3904724992b85/Package Control.sublime-settings
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"bootstrapped": true, | ||
"in_process_packages": | ||
[ | ||
], | ||
"installed_packages": | ||
[ | ||
"Alignment", | ||
"BeyondCompare", | ||
"Git", | ||
"GitHub Flavored Markdown Preview", | ||
"hextoASCII", | ||
"HexViewer", | ||
"Modific", | ||
"Package Control", | ||
"PowerShell", | ||
"Powershell Help Generator", | ||
"Theme - Soda", | ||
"Restructured Text (RST) Snippets", | ||
"SaltStack-related syntax highlighting and snippets", | ||
"TrailingSpaces" | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This is loaded on all non-interactive login shells | ||
# | ||
# This should contain all of your aliases and exports, so all shells have the | ||
# same commands available (i.e. remote shells, etc) | ||
# | ||
case $- in | ||
*i*) ;; | ||
*) return;; | ||
esac | ||
|
||
export PATH=$PATH:~/bin:/opt/bin | ||
export HISTCONTROL=ignoredups | ||
export EDITOR='vim' | ||
export TERM='xterm-256color' | ||
export PIP_REQUIRE_VIRTUALENV=true | ||
|
||
# Allow groups to read/execute, no permissions to others | ||
umask 027 | ||
|
||
alias wipe='shred --iterations=35 --verbose --zero --remove' | ||
alias src='screen -D -R' | ||
alias grep='grep --color=auto' |
Git LFS file not shown
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions
9
docs/_downloads/545afecaca716bb08378c91a6831cfa6/set_unix_line_endings.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import sublime_plugin | ||
|
||
class SetUnixLineEndingsCommand(sublime_plugin.TextCommand): | ||
def run(self, edit): | ||
self.view.set_line_endings("unix") | ||
|
||
class SetLineEndings(sublime_plugin.EventListener): | ||
def on_pre_save(self, view): | ||
view.run_command("set_unix_line_endings") |
122 changes: 122 additions & 0 deletions
122
docs/_downloads/5550ef7b2b77b6e39be3bd69946cc885/ubuntu-template.seed
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
# -------- Localization -------- | ||
d-i debian-installer/locale string en_US.UTF-8 | ||
|
||
# -------- Keyboard -------- | ||
d-i console-setup/ask_detect boolean false | ||
d-i console-setup/layoutcode string us | ||
d-i keyboard-configuration/xkb-keymap select us | ||
|
||
# -------- Network -------- | ||
d-i netcfg/choose_interface select auto | ||
d-i netcfg/link_wait_timeout string 10 | ||
d-i netcfg/dhcp_timeout string 10 | ||
d-i netcfg/dhcpv6_timeout string 1 | ||
|
||
# Set default names to prevent prompts, overwritten by DHCP names. | ||
d-i netcfg/get_hostname string unassigned-hostname | ||
d-i netcfg/get_domain string unassigned-domain | ||
|
||
# Disable that annoying WEP key dialog. | ||
d-i netcfg/wireless_wep string | ||
|
||
# -------- Hardware Firmware -------- | ||
d-i hw-detect/load_firmware boolean true | ||
|
||
# -------- Apt Mirror -------- | ||
d-i mirror/country string manual | ||
d-i mirror/http/hostname string mirrors.mit.edu | ||
d-i mirror/http/directory string /ubuntu | ||
d-i mirror/http/proxy string | ||
d-i mirror/udeb/components multiselect main, restricted, multiverse, universe | ||
|
||
# -------- Accounts -------- | ||
# disable root user | ||
d-i passwd/root-login boolean false | ||
|
||
# base user for system | ||
d-i passwd/user-fullname string | ||
d-i passwd/username string {USER} | ||
d-i passwd/user-password-crypted password {PRE HASHED PASSWORD} | ||
d-i passwd/user-uid string 1000 | ||
d-i passwd/user-default-groups string cdrom video sudo ssh plugdev | ||
d-i user-setup/encrypt-home boolean false | ||
|
||
# -------- Clock and Timezone -------- | ||
d-i clock-setup/utc boolean false | ||
d-i time/zone string America/Los_Angeles | ||
d-i clock-setup/ntp boolean true | ||
|
||
# -------- Partitioning -------- | ||
# Auto remove existing LVM/RAID partitions on disk | ||
d-i partman-lvm/device_remove_lvm boolean true | ||
d-i partman-lvm/confirm boolean true | ||
d-i partman-lvm/confirm_nooverwrite boolean true | ||
d-i partman-md/device_remove_md boolean true | ||
d-i partman-md/confirm boolean true | ||
|
||
# Unmount auto-mounted existing partitions on disks, if any | ||
d-i preseed/early_command string umount /media | ||
|
||
# Disable no-swap warning, create / with at least 1GB for entire disk. | ||
d-i partman-auto/disk string /dev/{BLOCK DEVICE} | ||
d-i partman-auto/method string regular | ||
d-i partman-basicfilesystems/no_swap boolean false | ||
d-i partman-auto/expert_recipe string root :: 1000 50 -1 ext4 \ | ||
$primary{ } $bootable{ } method{ format } \ | ||
format{ } use_filesystem{ } filesystem{ ext4 } \ | ||
mountpoint{ / } \ | ||
. | ||
d-i partman-auto/choose_recipe select root | ||
|
||
# Apply partitioning info with confirmation | ||
d-i partman-partitioning/confirm_write_new_label boolean true | ||
d-i partman/choose_partition select finish | ||
d-i partman/confirm boolean true | ||
d-i partman/confirm_nooverwrite boolean true | ||
|
||
# -------- Base System Installation -------- | ||
d-i base-installer/kernel/image string linux-generic | ||
|
||
# -------- Apt Setup ------- | ||
d-i apt-setup/restricted boolean true | ||
d-i apt-setup/universe boolean true | ||
d-i apt-setup/multiverse boolean true | ||
d-i apt-setup/backports boolean true | ||
|
||
# -------- Package Selection -------- | ||
# Main tasksel server packages | ||
tasksel tasksel/first multiselect server, openssh-server | ||
|
||
# Additional packages to install | ||
d-i pkgsel/include string openssh-server python-software-properties inotify-tools curl unattended-upgrades sysstat nmon tmux ssh vim haveged | ||
|
||
# Upgrade packages after bootstrap | ||
d-i pkgsel/upgrade select full-upgrade | ||
|
||
# Install security updates automatically | ||
d-i pkgsel/update-policy select unattended-upgrades | ||
|
||
# -------- Console Setup -------- | ||
# Verbose startup output, drop to console (text) login by default. | ||
d-i debian-installer/quiet boolean false | ||
d-i debian-installer/splash boolean false | ||
|
||
# -------- Boot Loader Installation -------- | ||
# Assume one OS, install to default device, add other OS's if found. | ||
d-i grub-installer/only_debian boolean true | ||
d-i grub-installer/with_other_os boolean true | ||
d-i grub-installer/bootdev string default | ||
d-i grub-installer/timeout string 2 | ||
|
||
# -------- Finish Installation -------- | ||
d-i cdrom-detect/eject boolean true | ||
d-i finish-install/reboot_in_progress note | ||
|
||
# -------- Post Installation -------- | ||
# After system is setup (before reboot), run post-install script. | ||
# | ||
# This command is run just before the install finishes, but when there is | ||
# still a usable /target directory. You can chroot to /target and use it | ||
# directly, or use the apt-install and in-target commands to easily install | ||
# packages and run commands in the target system. | ||
d-i preseed/late_command string cp -R /cdrom/post-install/* /target/tmp; in-target /tmp/post-preseed-complete |
12 changes: 12 additions & 0 deletions
12
docs/_downloads/5a4991332369d77505f478c515d02f21/create-host
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/vbash | ||
# | ||
# create-host {HOST} {IP} | ||
# | ||
source /opt/vyatta/etc/functions/script-template | ||
|
||
configure | ||
set system static-host-mapping host-name ${1}.example.com inet ${2} | ||
set system static-host-mapping host-name ${1}.example.com alias ${1} | ||
commit | ||
save | ||
exit |
42 changes: 42 additions & 0 deletions
42
docs/_downloads/5f5cc66334973dba3497eec1a8740722/remove-crapware.ps1
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Removes pre-install crapware from Windows 10 | ||
# Adjust list as needed, automatically wraps with globs. Case Insensitive. | ||
# Exection policy needs to be unrestricted, and run as admin | ||
# | ||
# From: | ||
# https://thomas.vanhoutte.be/miniblog/delete-windows-10-apps/ | ||
# http://www.makeuseof.com/tag/3-clever-powershell-functions-upgrading-windows-10/ | ||
# http://stackoverflow.com/questions/4037939/powershell-says-execution-of-scripts-is-disabled-on-this-system | ||
# | ||
|
||
$apps_to_remove = | ||
'zune', | ||
'bing', | ||
'skypeapp', | ||
'windowsmaps', | ||
'solitairecollection', | ||
'onenote', | ||
'facebook', | ||
'twitter', | ||
'netflix', | ||
'xbox', | ||
'3dbuilder', | ||
'messaging', | ||
'oneconnect', | ||
'office', | ||
'stickynotes', | ||
'windowsphone', | ||
'windowssoundrecorder', | ||
'windowscamera', | ||
'windows.photos', | ||
'getstarted', | ||
'WindowsAlarms', | ||
'MinecraftUWP', | ||
'CandyCrushSodaSaga', | ||
'ParadiseBay', | ||
'SlingTV', | ||
'MarchofEmpires' | ||
|
||
foreach ($app in $apps_to_remove) { | ||
Get-AppxPackage ('*%s*' -replace '%s', $app) | Remove-AppxPackage | ||
Get-AppxPackage -AllUsers ('*%s*' -replace '%s', $app) | Remove-AppxProvisionedPackage | ||
} |
36 changes: 36 additions & 0 deletions
36
docs/_downloads/6e759560188b5bd30f2d7b944cc59069/postgres-db-setup.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
set -e | ||
PSQL_ADMIN={{ psql_admin }} | ||
DB={{ db }} | ||
DB_USER={{ db_user }} | ||
DB_DUMP_LATEST={{ db_dump_latest }} | ||
|
||
echo "Creating $DB_USER user account ..." | ||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL | ||
CREATE USER $DB_USER PASSWORD '{{ db_pass }}'; | ||
CREATE DATABASE $DB; | ||
EOSQL | ||
|
||
if [ -f "$DB_DUMP_LATEST" ]; then | ||
echo "Importing $DB_DUMP_LATEST to $DB database ..." | ||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" $DB < "$DB_DUMP_LATEST" | ||
fi | ||
|
||
echo "Setting database $DB permissions ..." | ||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL | ||
ALTER DATABASE $DB OWNER TO $DB_USER; | ||
GRANT ALL PRIVILEGES ON DATABASE $DB TO $DB_USER; | ||
EOSQL | ||
|
||
# https://stackoverflow.com/questions/1348126/modify-owner-on-all-tables-simultaneously-in-postgresql | ||
for tbl in `psql -U $PSQL_ADMIN -qAt -c "select tablename from pg_tables where schemaname = 'public';" $DB` ; do | ||
psql -U $PSQL_ADMIN -c "alter table \"$tbl\" owner to $DB_USER" $DB; | ||
done | ||
for tbl in `psql -U $PSQL_ADMIN -qAt -c "select sequence_name from information_schema.sequences where sequence_schema = 'public';" $DB` ; do | ||
psql -U $PSQL_ADMIN -c "alter sequence \"$tbl\" owner to $DB_USER" $DB; | ||
done | ||
for tbl in `psql -U $PSQL_ADMIN -qAt -c "select table_name from information_schema.views where table_schema = 'public';" $DB` ; do | ||
psql -U $PSQL_ADMIN -c "alter view \"$tbl\" owner to $DB_USER" $DB ; | ||
done | ||
|
||
echo "done." |
7 changes: 7 additions & 0 deletions
7
docs/_downloads/712df34e7bc783b038ae7b68765465c7/.bash_logout
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ~/.bash_logout: executed by bash(1) when login shell exits. | ||
# Clear history, and screen on logout. | ||
if [ "$SHLVL" = 1 ]; then | ||
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q | ||
fi | ||
|
||
cat /dev/null > ~/.bash_history && history -c && exit |
4 changes: 4 additions & 0 deletions
4
docs/_downloads/734365f4e46dff326a055fd1e464b260/enable-meltdown-spectre-update.reg
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Windows Registry Editor Version 5.00 | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat] | ||
"cadca5fe-87d3-4b96-b7fb-a231484277cc"=dword:00000000 |
65 changes: 65 additions & 0 deletions
65
docs/_downloads/7de41c1d43bb4a3f5b373bb30931338f/playon-to-mkv
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#!/bin/bash | ||
# | ||
# Converts playon videos to mkv format, preserving encoding and stripping metadata. | ||
# For multiple: find -type f -exec ~/bin/playon-to-mkv netflix|amazon|playon|custom {} | ||
# | ||
|
||
# playon-to-mkv [netflix|amazon|playon] file | ||
# playon-to-mkv custom pre-trim post-trim file | ||
|
||
# Playon adds a 4 second pre-roll video with account/IP address, strip this. | ||
# Playon adds a 5 second post-roll video with account/IP address, strip this. | ||
# Playon adds metadata pertaining to account for video, strip this. | ||
PLAYON_PRE=4 | ||
PLAYON_POST=5 | ||
|
||
# Netflix adds a 6.5 second netflix video, strip this. | ||
# Netflix can inject a blank screen at the end, but it is not consistent. | ||
NETFLIX_PRE=6 | ||
NETFLIX_POST=0 | ||
|
||
# Amazon adds a 1.5 second post-roll video for series, strip this. | ||
AMAZON_PRE=0 | ||
AMAZON_POST=1.5 | ||
|
||
echo 'Calculating distances ...' | ||
FILE="$2" | ||
case "$1" in | ||
"netflix") | ||
echo 'Processing NETFLIX' | ||
PRE=$(awk '{print $1+$2}' <<< "${PLAYON_PRE} ${NETFLIX_PRE}") | ||
POST=$(awk '{print $1+$2}' <<< "${PLAYON_POST} ${NETFLIX_POST}") | ||
;; | ||
"amazon") | ||
echo 'Processing AMAZON' | ||
PRE=$(awk '{print $1+$2}' <<< "${PLAYON_PRE} ${AMAZON_PRE}") | ||
POST=$(awk '{print $1+$2}' <<< "${PLAYON_POST} ${AMAZON_POST}") | ||
;; | ||
"custom") | ||
echo 'Processing CUSTOM' | ||
PRE=$2 | ||
POST=$3 | ||
FILE="$4" | ||
;; | ||
*) | ||
echo 'Prcessing PLAYON' | ||
PRE=${PLAYON_PRE} | ||
POST=${PLAYON_POST} | ||
;; | ||
esac | ||
filename=$(basename "${FILE}") | ||
dir=$(dirname "${FILE}") | ||
extension="${filename##*.}" | ||
basename="${filename%.*}" | ||
|
||
ORIGINAL_LENGTH=$(ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "${FILE}" | cut -d\. -f1) | ||
TRIM_LENGTH=$(awk '{print $1-$2-$3}' <<< "${ORIGINAL_LENGTH} ${PRE} ${POST}") | ||
echo -e "Distances: \nLength: ${ORIGINAL_LENGTH}\nPre Offset: ${PRE}\nPost Offset: ${POST}\nTrim: ${TRIM_LENGTH}" | ||
|
||
echo 'Stripping metadata and trimming ...' | ||
ffmpeg -i "${FILE}" -ss ${PRE} -acodec copy -vcodec copy -map_metadata -1 -t ${TRIM_LENGTH} "${dir}/${basename}.stripped.${extension}" | ||
echo 'Packing into mkv ...' | ||
mkvmerge -o "$-{basename}.mkv" "${basename}.stripped.${extension}" | ||
echo 'Setting media permssions ...' | ||
chown ${USER}:${USER} "${basename}.mkv" | ||
chmod 0640 "${basename}.mkv" |
Oops, something went wrong.