Skip to content

Instantly share code, notes, and snippets.

@jnovinger
jnovinger / verify_20587.sh
Created October 15, 2025 17:14
Reproduce NetBox #20587
#!/bin/bash
COMMAND="git checkout v4.4.2"
echo -e "\n=== Checking out v4.4.2 ($COMMAND) ... ===\n"
eval $COMMAND || exit 1
COMMAND="uv pip install -r requirements.txt"
echo -e "\n=== Installing backend dependencies for 4.4.2 ($COMMAND) ... ===\n"
eval $COMMAND || exit 1
@jnovinger
jnovinger / Justfile
Last active October 7, 2025 22:13
NetBox #20518 testing script
# NetBox Development Justfile
# Provides shortcuts for common development tasks
#
# Just command runner: https://just.systems
# Documentation: https://just.systems/man/en/
# Source: https://github.com/casey/just
# Test environment configuration
_test-env := "NETBOX_CONFIGURATION=netbox.configuration_testing"
@jnovinger
jnovinger / Dockerfile.test
Last active October 7, 2025 18:33
Reproduce sorl-thumbnail test failures with ImageMagick v6.x
FROM ubuntu:24.04
# Install dependencies including Python 3.9 and 3.12
RUN apt-get update && apt-get install -y \
imagemagick \
libgraphicsmagick1-dev \
libgraphicsmagick++1-dev \
graphicsmagick \
libjpeg62 \
zlib1g-dev \
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NetBox Filter UI Style Comparison</title>
<!-- Bootstrap 5 CSS from CDN -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
@jnovinger
jnovinger / Contract Killer 3.md
Created January 18, 2016 19:15
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: October 8th 2015
  • Original post

Keybase proof

I hereby claim:

  • I am jnovinger on github.
  • I am jnovinger (https://keybase.io/jnovinger) on keybase.
  • I have a public key whose fingerprint is 87F4 AD28 A1AA 6C40 33FC 2489 FAE4 C7C5 C0F4 5808

To claim this, I am signing this object:

@jnovinger
jnovinger / .tmux.conf
Last active August 29, 2015 13:57 — forked from alexyoung/tmux.conf
set -g status on
set -g status-utf8 on
set -g status-interval 2
set -g status-fg black
set -g status-bg colour232
set -g status-right '#[bg=colour233] #[fg=white,bg=colour234] %T #[fg=yellow,bg=colour233] #[bg=colour232] #(/Users/jason/bin/mac-battery.sh)'
set -g status-left '#[fg=colour16,bg=colour232,bold] #S #[fg=colour254,bg=colour234,nobold]'
set -g window-status-format "#[fg=colour16,bg=colour234] #I #[fg=colour231,bold]#W #[fg=colour31,bg=colour234,nobold]"
set -g window-status-current-format "#[fg=colour117,bg=colour31] #I #[fg=colour231,bold]#W #[fg=colour31,bg=colour234,nobold]"
set -g window-status-separator ""
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)
<03:48 PM> jason@legolas:~$ python bitsquat.py dailydot .com
eailydot.com: is taken (66.152.109.110)
failydot.com might be available!
lailydot.com might be available!
tailydot.com might be available!
dcilydot.com: is taken (66.152.109.110)
deilydot.com might be available!
diilydot.com might be available!
dqilydot.com might be available!
dahlydot.com: is taken (66.152.109.110)

Justification

Readers should be able to easily find the most recent content on our site. Readers should be able to do this on the main page, via a 'Latest' well that shows the 7 most recent stories. Readers should additionally be able to peruse all stories in reverse chronological order (much like the old site) on a separate 'Latest' page.

Requirements

  • Create a 'latest' queryset in apps/articles/querysets.py
  • Add a 'Latest' well entry in the admin (development, staging, and production)
  • Add the 'Latest' well to the 'Homepage' Page Ordering, ranking it right below the 'Trending' well
  • Add 'latest' as a type of query to SECTIONS