This file contains hidden or 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 sh | |
# | |
# launchmimeapp.sh: launch the XDG desktop application associated | |
# with a given MIME type. Similar to xdg-open(1) but without the | |
# need for passing a specific file corresponding to the MIME type. | |
# | |
# Usage: launchmimeapp.sh <MIME type> [<app arguments>] | |
# | |
# Official list of MIME types: | |
# https://www.iana.org/assignments/media-types/media-types.xhtml |
This file contains hidden or 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 python3 | |
from sys import exit | |
from subprocess import run, PIPE | |
from unicodedata import name as unicode_name | |
if run(["/usr/bin/pkill", "-x", "fuzzel"]).returncode == 0: | |
exit(0) | |
chars = [] |
This file contains hidden or 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
""" | |
Truly Private Instance Attributes for Python | |
(Proof-of-concept, for-fun demonstration only. And probably not a good idea...) | |
This module provides the PrivateAttribute descriptor class, | |
which can be used to implement "truly private" instance attributes. | |
Direct access to instance attributes managed by the PrivateAttribute | |
descriptor can only be performed from instance methods under the | |
owner class. Attempting to read or write private attributes from |
This file contains hidden or 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 sh | |
# | |
# filemod.sh: a tool for modifying inode metadata in bulk, based on | |
# a text-based declarative specification passed from standard input. | |
# | |
# Usage: echo '<specification>' | filemod.sh <root directory> | |
# | |
# Define $FILEMOD_DEBUG to enable verbose diagnostics. | |
# | |
# Specification syntax example: |
This file contains hidden or 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 python3 | |
import os | |
import re | |
import string | |
import signal | |
import json | |
import hashlib | |
from sys import argv, exit | |
from random import shuffle |
This file contains hidden or 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
--[[ | |
Description: This module provides a single function to serialize arbitrary data | |
(tuple accepted) into a string representation suitable for display. | |
Author: Expertcoderz (GH/RBX) | |
]] | |
local BUILTIN_TABLES: {[{}]: string} = { | |
-- Types | |
[Axes] = "Axes", |
This file contains hidden or 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 | |
Combines Group Policy Object (GPO) backups from multiple source directories | |
into a single unified directory containing the GPO backups. | |
.DESCRIPTION | |
Combines Group Policy Object (GPO) backups from multiple source directories | |
into a single unified directory containing the GPO backups. | |
Duplicate GPOs will be ignored based on display name. |