Skip to content

Instantly share code, notes, and snippets.

@scetron
scetron / nautobot_view_all.md
Created October 4, 2022 17:12
Create a Nautobot View all permission

View All Objects Permission In Nautobot

A common use case is to create a read-only, or view-only role for all things within Nautobot. This is a way to create the role via the Nautobot shell.

Using nautobot-server shell_plus

ct = ContentType.objects.all()
ct.filter(
 Q(

Keybase proof

I hereby claim:

  • I am scetron on github.
  • I am scetron (https://keybase.io/scetron) on keybase.
  • I have a public key whose fingerprint is 9CF2 B127 8A33 F470 5448 A7E8 FC81 1894 157E 7C72

To claim this, I am signing this object:

@scetron
scetron / wordclock
Last active February 27, 2020 17:11
import neopixel
import busio as io
from board import A0, SCL, SDA
import adafruit_ds3231
i2c = io.I2C(SCL, SDA)
rtc = adafruit_ds3231.DS3231(i2c)
p = A0
ps = 169
pls = neopixel.NeoPixel(p, ps, brightness=.1, auto_write=False)
#colors + off (will be adding more in the future)