Skip to content

Instantly share code, notes, and snippets.

ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SBRG.EC0], AE_NOT_FOUND (20240827/dswload2-162)
ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20240827/psobject-220)
in DSDT add a dummy device to make \_SB.PCI0.SBRG.EC0 known:
Scope (_SB.PCI0.SBRG)
{
+ Device (EC0)
+ {
+ Name (_HID, Zero) // _HID: Hardware ID
<style>
.freeform-container,
.freeform-input {
color:#FFF !important;
}
</style>
<script>
const frmIdx = 0;
const maxLength = 4096;
const header = 'Nachricht';
@neon12345
neon12345 / backup_test.sh
Last active September 24, 2023 16:17
Backup cleanup algorithm test
#!/bin/bash
# This script will simulate an infinite backup cycle per day.
# Empty backup files are created in the current working directory
# and deleted acording to the cleanup algorithm parameters.
# One file per second is created, which is one simulated day.
# => It is best to run this script form inside an empty test directory.
# This script will not halt and must be aborted!
# The same algorithm is used in https://github.com/bit-team/backintime
set -o pipefail
@neon12345
neon12345 / backup.sh
Last active April 30, 2025 08:51
Manage a Btrfs snapshot history chain as visible files for SnapRAID
#!/bin/bash
# usage: ./backup.sh btrfs_root_path
# requirements:
# 1. $BACKUP_DIR must not exist in the btrfs_root_path
# 2. current, new, top, old must not exist in the btrfs_root_path
# how it works:
# The script creates a single btrfs snapshot "new" per invocation and btrfs sends it
# to the $BACKUP_DIR with a "current" snapshot as parent.
# Thus the btrfs send is incremental with either an initial "current" snapshot
# or a "current" snapshot from the previous invocation.
#!/bin/sh
py_script='
import mmap, base64, sys, getopt
def main(argv):
inputfile = ""
needle = b""
try:
#!/bin/sh
py_script='
import mmap, base64, sys, getopt
def main(argv):
inputfile = ""
needle = b""
try:
#!/bin/sh
py_script='
import mmap, base64, sys, getopt
def main(argv):
needle = b""
try:
opts, args = getopt.getopt(argv,"hn:",["needle="])