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/bash | |
# ============================================================================= | |
# Install AzCopy on Linux | |
# https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10 | |
# https://github.com/Azure/azure-storage-azcopy | |
# ----------------------------------------------------------------------------- | |
# Developer.......: Andre Essing (https://www.andre-essing.de/) | |
# (https://github.com/aessing) | |
# (https://twitter.com/aessing) | |
# (https://www.linkedin.com/in/aessing/) |
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
<# | |
.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. | |
Of course, this checks the regular flatpak installation at /var/lib/flatpak . | |
If you want to use an alternative path, execute the program with said path. | |
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. |
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 | |
if ! ostree admin status | grep Unlocked > /dev/null 2>&1; then | |
if ! sudo ostree admin unlock; then | |
echo "Can't open the current OSTree deployment!" | |
exit 1 | |
fi | |
fi |
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 | |
from datetime import datetime | |
import json | |
from json import JSONDecoder | |
from json import JSONEncoder |