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
<# | |
.SYNOPSIS | |
Returns all permutations of paths through the front door object to the target backends configured. | |
.DESCRIPTION | |
For the provided Azure Front Door resource, this function generates output objects for each permutation of: | |
* Url input | |
* Pattern Matched |
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
""" | |
This python script will find flatpak deduplication size stats. | |
Made with :heart: by powpingdone#3611, or just powpingdone on github. | |
Explaination for output: | |
'no dedupe': The size that the ostree repository would take up if files were not deduplicated. | |
'dedupe': The actual size of the ostree repository. | |
'singlet': The size of all files that are referenced once. | |
'orphan': The size of all files not referenced (ie, only one hard link). |
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
agent: 1 | |
args: -device ivshmem-plain,memdev=ivshmem,bus=pcie.0 -object memory-backend-file,id=ivshmem,share=on,mem-path=/dev/shm/looking-glass,size=32M -device virtio-mouse-pci -device virtio-keyboard-pci -spice addr=0.0.0.0,port=5930,disable-ticketing | |
audio0: device=AC97,driver=spice | |
bios: ovmf | |
bootdisk: sata0 | |
cores: 16 | |
cpu: host,flags=+ibpb;+virt-ssbd | |
hostpci0: 42:00,pcie=1,x-vga=1 | |
ide2: none,media=cdrom | |
machine: q35 |
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
#!/bin/sh | |
# Run this script, then install the debuginfo packages with: | |
# sudo dnf debuginfo-install PACKAGE | |
set -e | |
tmp=$(mktemp -d) | |
cleanup () { | |
rm -rf $tmp | |
} |
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 bash | |
apt_wait () { | |
while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do | |
sleep 1 | |
done | |
while sudo fuser /var/lib/apt/lists/lock >/dev/null 2>&1 ; do | |
sleep 1 | |
done | |
if [ -f /var/log/unattended-upgrades/unattended-upgrades.log ]; then |
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 python | |
# An example of decoding/encoding datetime values in JSON data in Python. | |
# Code adapted from: http://broadcast.oreilly.com/2009/05/pymotw-json.html | |
# Copyright (c) 2023, Abhinav Upadhyay | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: |