/mouse enable
#!/bin/bash | |
# install qemu utils | |
sudo apt install qemu-utils | |
# install nbd client | |
sudo apt install nbd-client |
#!/usr/bin/env python | |
import sys | |
import cv2 | |
import subprocess | |
from subprocess import call | |
import aalib | |
import Image |
/system script | |
add name="Music: Super Mario Bros" owner=admin policy=read source=":beep frequency=660 length=100ms;\ | |
\n:delay 150ms;\ | |
\n:beep frequency=660 length=100ms;\ | |
\n:delay 300ms;\ | |
\n:beep frequency=660 length=100ms;\ | |
\n:delay 300ms;\ | |
\n:beep frequency=510 length=100ms;\ | |
\n:delay 100ms;\ | |
\n:beep frequency=660 length=100ms;\ |
##git mergetool
In the middle file (future merged file), you can navigate between conflicts with ]c
and [c
.
Choose which version you want to keep with :diffget //2
or :diffget //3
(the //2
and //3
are unique identifiers for the target/master copy and the merge/branch copy file names).
:diffupdate (to remove leftover spacing issues)
:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)
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.
#!/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) |
fws() { | |
for IPTABLES in iptables ip6tables | |
do | |
printf '\n\n\n\n\n' | |
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' '#' | |
echo "# ${IPTABLES}" | |
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' '#' | |
sudo "${IPTABLES}" -L -vnx --line-numbers | \ | |
# table header | |
sed "/^num.*/ s//$(printf "\033[33m&\033[0m")/ " | \ |