Assume your deployment is under /netbox:
Add to configuration/configuration.py
BASE_PATH = environ.get('BASE_PATH', '')Add to env/netbox.env
Assume your deployment is under /netbox:
Add to configuration/configuration.py
BASE_PATH = environ.get('BASE_PATH', '')Add to env/netbox.env
https://github.com/PacktPublishing free to download books code by Packet
https://github.com/EbookFoundation/free-programming-books Very immense
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| import struct | |
| HTTP2_HDR="PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" | |
| # Does the thing for a frame | |
| def frame(ty, flags, streamid, payload): | |
| return struct.pack(">L", len(payload))[1:4] + struct.pack(">BBL", ty, flags, streamid) + payload |
| # Install ARCH Linux with encrypted file-system and UEFI | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # Create partitions | |
| cgdisk /dev/sdX | |
| 1 100MB EFI partition # Hex code ef00 | |
| 2 250MB Boot partition # Hex code 8300 | |
| 3 100% size partiton # (to be encrypted) Hex code 8300 | |
| mkfs.vfat -F32 /dev/sdX1 |
| # Install ARCH Linux with encrypted file-system and UEFI | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # Download the archiso image from https://www.archlinux.org/ | |
| # Copy to a usb-drive | |
| dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
| # Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
| # Set swedish keymap |
In the mid-80s, while reading through my roommate's collection of Scientific American back issues, I encountered this introduction to Lisp written by Douglas Hofstadter. I found it very charming at the time, and provide it here (somewhat illegally) for the edification of a new generation of Lispers.
In a testament to the timelessness of Lisp, you can still run all the examples below in emacs if you install these aliases:
(defalias 'plus #'+)
(defalias 'quotient #'/)
(defalias 'times #'*)
(defalias 'difference #'-)