With
systemd 197
we have added native support for a number of different naming policies intosystemd
/udevd
proper 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 byudev
natively:
- 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 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" |
This file contains 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 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 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 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 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
import sys, os | |
reload(sys) | |
sys.setdefaultencoding("UTF-8") | |
# @see http://pythonic.zoomquiet.top/data/20130407004931/index.html |
This file contains 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 | |
# ```sh | |
# apt-get remove --purge bcmwl-kernel-source | |
# cd /usr/local/src | |
# git clone https://github.com/antoineco/broadcom-wl | |
# ``` | |
# Current regulatory domain. | |
REG_COUNTRY=${REG_COUNTRY:-FR} |
This file contains 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 | |
# Get all devices (hdd) temperatures at once. | |
# | |
# Sample of use: | |
# | |
# ```sh | |
# sudo hddtemp-report | |
# sudo hddtemp-report /tmp/hddtemp-report | |
# sudo hddtemp-report /tmp/hddtemp-report '%s: $alignr %s' |
This file contains 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 | |
require 'shellwords' | |
# Simple Volume Control based on ``pactl`` | |
# | |
# Sample of (CLI) use: | |
# | |
# ``` | |
# volume-control up |
NewerOlder