Skip to content

Instantly share code, notes, and snippets.

View JayDoubleu's full-sized avatar
🎯
Focusing

Jay W JayDoubleu

🎯
Focusing
View GitHub Profile
@JamieHWK
JamieHWK / Export-AzFrontDooRoutingRuleRoutes.ps1
Last active February 22, 2022 15:11
Export-AzFrontDooRoutingRuleRoutes
<#
.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 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).
@yvesh
yvesh / pxe-101.conf
Created December 19, 2019 11:41
Proxmox QEMU KVM Windows 10 Configuration with GPU PCI-Passthrough and looking-glass support. Binds non-tls spice port to 5930
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
@tpopela
tpopela / install-dnf
Last active September 1, 2023 10:37
Simple script that unlocks the current OSTree deployment if needed and installs the dnf for debugging purposes
#!/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
}
@tedivm
tedivm / apt_wait.sh
Created April 22, 2018 16:33
A BASH function to wait for `apt` to finish and release all locks.
#!/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
@abhinav-upadhyay
abhinav-upadhyay / DateTimeDecoder.py
Last active July 4, 2023 13:12
A JSON decoder/encoder implementation for parsing dates as datetime objects in Python
#!/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: