Skip to content

Instantly share code, notes, and snippets.

@AntaeusNar
AntaeusNar / scripts.js
Last active May 7, 2019 18:16 — forked from sarvar/index.html
Sticky Bootstrap navbar on scroll for Bootstrap 4
$(document).ready(function() {
// Custom
var stickyToggle = function(sticky, stickyWrapper, scrollElement) {
var stickyHeight = sticky.outerHeight();
var stickyTop = stickyWrapper.offset().top;
if (scrollElement.scrollTop() >= stickyTop){
stickyWrapper.height(stickyHeight);
sticky.addClass("is-sticky");
}
else{
@AntaeusNar
AntaeusNar / tests.py
Created October 14, 2019 20:44 — forked from magopian/tests.py
Unit test to validate django templates
class TemplatesTest(TestCase):
def test_templates(self):
"""Templates can compile properly and there's no mismatched tags"""
# get app template dirs
template_dirs = []
apps = [app for app in settings.INSTALLED_APPS
if app.startswith('rh2')]
for app in apps:
mod = import_module(app)
@AntaeusNar
AntaeusNar / 1-Proxmox-LXC-NFS-READ.md
Last active October 19, 2021 16:39 — forked from mturley/1-plexbox-setup-README.md
Proxmox LXC Seedbox PlexBox *arrBox

Privilaged LXC with NFS and Nesting options enabled

  • Start by creating a new LXC using Ubuntu LTS 20.04 Focal
  • Uncheck the Unprilivlaged option
  • All other settings as desired
  • DO NOT start on task completion
  • Under LXC>Options
    • Nesting = 1
    • NFS = 1
  • Start LXC
  • update and install depedancies