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 | |
import sys, os | |
import platform | |
import ctypes as ct | |
import mmap | |
from enum import Enum | |
import importlib | |
import functools | |
import errno |
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 | |
# The MIT License (MIT) | |
# Copyright © 2024 Michele Frau aka zuMi | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT |
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 | |
### the unique window title prefix for our terminal session | |
terminalKeyword="QuakeTerm" | |
### optionally set the location of a custom terminal profile to be used | |
### it must contain whatever is used as the terminalKeyword at the beginning of the "Window title" | |
### for example: "Window title" , "QuakeTerm %i: %t" | |
### comment out the line to use the default Terminal settings | |
#terminalProfile="/boot/home/config/non-packaged/apps/MyCustomTerminalSettings" |
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
# Requires pydub (with ffmpeg) and Pillow | |
# | |
# Usage: python waveform.py <audio_file> | |
import sys | |
from pydub import AudioSegment | |
from PIL import Image, ImageDraw | |
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
;= doskey.mac - posix shell style aliases for cmd.exe | |
;= place it under %AppData% and create a shortcut to | |
;= C:\Windows\System32\cmd.exe /k "doskey /macrofile=%AppData%\doskey.mac" | |
;= beware, this is very crippled *nix shell simulation. | |
;= --``why not go ahead and use bash/ksh/etc?'' | |
;= --``no I don't. shell on Windows just sucks.'' | |
;= I use these aliases to save me a few (otherwise-would-be) typos; | |
;= for anything more than a few lines, |