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 | |
## When doing some experimenting, it can be usefull to be able to quickly change the default storage class in k8s. | |
## This script does that - it will change the default storage class to the one supplied on the commandline, erroring out | |
## in case this storage class does not exist, or if the changing of the storage class failed. | |
## Disclaimer/for openness: I thought of creating this script, but ChatGPT did most of the grunt work of realizing it. | |
# Check if storage class name is provided as an argument | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <storage-class-name> - this storage class will be set as the default kubernetes storage class, and the previous default is removed" | |
exit 1 |
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 | |
""" | |
Fast duplicate file finder. | |
Usage: duplicates.py [-hcf] <folder> [<folder>...] | |
Based on https://stackoverflow.com/a/36113168/300783 | |
Modified for Python3 with some small code improvements. | |
Modified by jcjveraa to include option to hardlink any duplicate files | |
""" |