Skip to content

Instantly share code, notes, and snippets.

View anandslab's full-sized avatar

SmartHomeBeginner anandslab

View GitHub Profile
@anandslab
anandslab / docker-media-server-basic.yml
Last active October 17, 2021 23:06
Docker Compose for Ultimate Docker Home Media Server - Basic
Deprecated.
Please check here for updates: https://github.com/htpcBeginner/AtoMiC-ToolKit-Docker/blob/master/docker-compose-basic.yml
@anandslab
anandslab / atomic-couchpotato-installer.sh
Created March 15, 2015 19:38
This AtoMiC (Automated Media Center) CouchPotato installer script will automatically install CouchPotato on Ubuntu variants. For full description check: http://www.htpcbeginner.com/1-step-couchpotato-installer-script-for-ubuntu/
#!/bin/bash
# Script Name: AtoMiC CouchPotato installer
# Author: htpcBeginner.com
# Publisher: http://www.htpcBeginner.com
# Version: 1.0 (March 29, 2013) - Initial release
# Version: 1.1 (October 03, 2013) - Bugfixes
# Version: 2.0 (April 13, 2014) - Updated script to work with Trusty Tahr
# Version: 3.0 (March 14, 2015) - Improved code and user friendliness
# 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
@anandslab
anandslab / atomic-sickcbeard-installer.sh
Last active August 29, 2015 14:17
This AtoMiC (Automated Media Center) Sick Beard installer script will automatically install Sick Beard on Ubuntu variants. For full description check: http://www.htpcbeginner.com/automatic-1-step-sick-beard-installer-script-ubuntu/
#!/bin/bash
# Script Name: AtoMiC Sick Beard installer
# Author: htpcBeginner.com
# Publisher: http://www.htpcBeginner.com
# Version: 1.0 (October 03, 2013) - Initial Release
# Version: 2.0 (April 13, 2014) - Update script to work with Trusty Tahr
# Version: 3.0 (March 14, 2015) - Improved code and user friendliness
# 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 2 of the License, or
@anandslab
anandslab / atomic-sickrage-installer.sh
Last active August 29, 2015 14:17
This AtoMiC (Automated Media Center) AtoMiC SickRage installer script will automatically install SickRage PVR on Ubuntu variants.
#!/bin/bash
# Script Name: AtoMiC SickRage installer
# Author: htpcBeginner.com
# Publisher: http://www.htpcBeginner.com
# Version: 1.0 (March 14, 2015) - Initial Release
# 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 2 of the License, or
# (at your option) any later version.
#
@anandslab
anandslab / .bash_aliases
Last active May 8, 2021 02:17
bash_aliases for Ubuntu HTPC and Home Servers
# UPDATE AND UPGRADE
alias update='sudo apt-get update'
alias upgrade='sudo apt-get upgrade'
# PACKAGE MANAGEMENT
alias install='sudo apt-get install'
alias uninstall='sudo apt-get remove'
alias aptsearch='sudo apt-cache search'
alias addkey='sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com'
alias finstall='sudo apt-get -f install'
@anandslab
anandslab / ASUS_install_ssl_certificate
Last active May 1, 2022 20:13 — forked from davidbalbert/gist:6815258
How to install SSL certificates generated from a certifying authority on ASUS routers.
# First, enable SSH in the Administration->System tab.
# Then log in to the device.
# Verify that https_crt_save is off
admin@RT-N66U:/tmp/home/root# nvram get https_crt_save
0
# Enable https_crt_save and verify that it was set correctly
admin@RT-N66U:/tmp/home/root# nvram set https_crt_save=1
admin@RT-N66U:/tmp/home/root# nvram get https_crt_save
@anandslab
anandslab / advancedsettings.xml
Last active November 5, 2021 20:43
AdvacedSettings.xml for Kodi with MySQL and other tweaks.
<!-- General Settings -->
<advancedsettings>
<loglevel hide="true">-1</loglevel> <!-- Comment: Disables logging -->
<playcountminimumpercent>95</playcountminimumpercent>
<skiploopfilter>0</skiploopfilter> <!-- Comment: For RPi or similar use 16 or higher (low CPU usage) -->
<nodvdrom>true</nodvdrom>
<!-- MySQL Library -->
<videodatabase>
<type>mysql</type>
@anandslab
anandslab / nginx-rewrites-yoast-wordpress-seo
Last active May 1, 2019 07:02
Nginx rewrites for Yoast's WordPress SEO plugin. These rewrites go into the Nginx host file between the server blocks.
# This rewrite redirects sitemap.xml to sitemap_index.xml, which is what Yoast's WordPress SEO plugin generates.
rewrite ^/sitemap\.xml$ /sitemap_index.xml permanent;
# This rewrite ensures that the styles are available for styling the generated sitemap.
rewrite ^/([a-z]+)?-?sitemap\.xsl$ /index.php?xsl=$1 last;
# These rewrites rule are generated by Yoast's plugin for Nginx webserver
rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
@anandslab
anandslab / w3-total-cache-sitemap-exclusions
Created July 6, 2014 15:46
W3 Total Cache exclusions for sitemaps. Use this under Page Cache (Never cache the following items), Minify (Never minify the following items), Browser Cache (404 Error Exception List), and CDN (Rejected Files) for Yoast or any XML sitemaps for WordPress.
([a-z0-9_\-]+)?sitemap(_index)?(-)?([0-9]*)?\.(xml(\.gz)?|xsl)$
@anandslab
anandslab / atomic-transmission-webui-installer.sh
Last active September 16, 2016 12:12
This AtoMiC (Automated Media Center) Transmission BT webUI installer script will automatically install Transmission with web interface on Ubuntu variants and set the correct initial configuration to avoid permission denied error, no data found error, and unable to save resume file error. For full description check: http://www.htpcbeginner.com/at…
#!/bin/bash
# Script Name: AtoMiC Transmission WebUI installer
# Author: htpcBeginner.com
# Publisher: http://www.htpcBeginner.com
# Version: 1.0 (June 21, 2014) - Initial Release
# Version: 2.0 (March 14, 2015) - Improved code and user friendliness
# 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 2 of the License, or
# (at your option) any later version.