With
systemd 197we have added native support for a number of different naming policies intosystemd/udevdproper and made a scheme similar tobiosdevname's (but generally more powerful, and closer to kernel-internal device identification schemes) the default. The following different naming schemes for network interfaces are now supported byudevnatively:
- Names incorporating Firmware/BIOS provided index numbers for on-board devices (example:
eno1)- Names incorporating Firmware/BIOS provided PCI Express hotplug slot index numbers (example:
ens1)- Names incorporating physical/geographical location of the connector of the hardware (example:
enp2s0)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| # Some (useful) shell tricks. | |
| set -eux | |
| # read from deb file without extracting to the filesystem | |
| dpkg --fsys-tarfile gitkraken.deb | tar xOf - ./usr/share/gitkraken/version > VERSION |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| autoload(:YAML, 'yaml') | |
| autoload(:Pathname, 'pathname') | |
| autoload(:Etc, 'etc') | |
| # Sample of use: | |
| # | |
| # ```sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- ~/.config/mpv/scripts/icy-notify.lua | |
| local utils = require 'mp.utils' | |
| local msg = require 'mp.msg' | |
| local DEBUG = false | |
| -- table ---------------------------------------------------------------------- | |
| table.union = function(a, b) | |
| local result = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # frozen_string_literal: true | |
| class SrtFix | |
| autoload(:Pathname, 'pathname') | |
| def initialize(filepath) | |
| @filepath = Pathname.new(filepath) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| # @file /lib/systemd/system-sleep/touchpad | |
| # @see https://askubuntu.com/questions/671910/touchpad-not-working-after-suspending-laptop | |
| set -eu | |
| # constants ---------------------------------------------------------- | |
| MODULES="i2c_hid_acpi" |
vim /etc/systemd/system/traefik.service
systemctl daemon-reloaduseradd -r -s /bin/false -U -M traefik
mkdir -pv /etc/traefik/storage
mkdir -pv /var/log/traefik/
chown -Rfv traefik:traefik /etc/traefik/ /var/log/traefik/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # vim: set filetype=apache ts=2 sw=2 expandtab: | |
| <IfModule mod_remoteip.c> | |
| RemoteIPHeader X-Forwarded-For | |
| RemoteIPTrustedProxy 127.0.0.1 | |
| </IfModule> | |
| <IfModule mod_setenvif.c> | |
| SetEnvIfNoCase X-Forwarded-Proto "^https$" HTTPS=on | |
| </IfModule> |
OlderNewer