First, create a GPT partition table.
- boot partition, label: EFI, flags: boot + ESP; size: 1GB, format to FAT32;
- root partition (label: root), must same size on all devices!
- swap partition.
package main | |
import ( | |
"net/http" | |
"database/sql" | |
"fmt" | |
"log" | |
"os" | |
) |
class DotGenerator(Visitor): | |
def __init__(self): | |
super().__init__() | |
self.lines = [] | |
self.next_id = 0 | |
def make_name(self, node, name=None): | |
if name is None: | |
name = "n%d" % self.next_id | |
self.next_id += 1 |
direct discussion about administrative action away from the main channel and into #reddit-diabetes-ops
to minimise disruption. our -ops
channel is the place where users should come to ask for our help. examples:
tl;dr:
Variation is less than I initially thought; just enough for me to notice
This is an approach to generate dynamically a JSON representation of an OID tree (=an(y) SNMP MIB) using mibdump.py of python pysmi.
We will generate a flat list of OID objects (oid_catalog.json) + hierarchical json tree (oid_tree.json) with "."-separated nodes of RFC 1213 MIB.
$ pip install pysmi
# walk into and/or create a new directory you run the following command in
$ mibdump.py --destination-format=json --generate-mib-texts --build-index --mib-stub= RFC1213-MIB
import argparse | |
from mock import Mock | |
m = Mock() | |
parser = argparse.ArgumentParser() | |
subparsers = parser.add_subparsers() | |
query_group = subparsers.add_parser('query') | |
add_group = subparsers.add_parser('add') |
#!/usr/bin/env python | |
# | |
# Parses the output of storcli: | |
# storcli /c0 show all J | |
import sys | |
import json | |
output_dir = "." | |
data = json.load(sys.stdin) |
Warnung an alle, die dieses Gist finden: Ich habe hier nur dokumentiert, was ich im Rahmen einer Umstellung herausgefunden habe. Es gibt Garantie auf Richtigkeit der Informationen, Zusammenhänge oder ob das unter allen Umständen wie hier beschrieben funktioniert.
Debian stellt auf ein anderes System von Namen für Netzwerkinterfaces um. In Debian 9 gehen noch die alten, manuell festgelegten - was der Standard ist, wenn man von Debian 8 aktualisiert.
Ab Debian 10 wird dieses System, welches mit udev
und systemd
zusammen hängt, zum Standard.
Mit zless /usr/share/doc/udev/README.Debian.gz
kann man Debian-spezifische Informationen zu dem Thema finden.
Unter anderem auch, dass (und wie) man diesen Mechanismus in Debian 9 Stretch umgehen kann.