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 bash | |
# Updates all git repository mirrors that sit in current | |
# directory with a folder name ending on .git. | |
# | |
# Also allows to add repositories. See usage. | |
# | |
# To remove a mirrored repository simply delete the folder. | |
function print_usage() { |
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
Function to_utm(x, y) As Collection | |
Dim coordinates As Collection | |
Set coordinates = New Collection | |
E = 0.00669438 | |
R = 6378137 | |
K0 = 0.9996 | |
E2 = E * E |
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
#!/bin/sh | |
########################################################################### | |
# spincheck.sh | |
# | |
# Determines the power status of given disks without waking them through | |
# usage of smartctl. | |
# | |
# Author: Niels Gandrass | |
# Version: 1.0 | |
# Since: 15.05.2017 |
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
# Alias definitions to rotate PDF documents | |
# These useful aliases were removed from pdfjam since version 3.02 | |
alias pdf90="pdfjam --landscape --angle 90" | |
alias pdf180="pdfjam --angle 180" | |
alias pdf270="pdfjam --landscape --angle 270" |
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
image: gradle:7.4-jdk17-alpine | |
stages: | |
- build | |
- test | |
- packaging | |
# Disable the Gradle daemon for Continuous Integration servers as correctness | |
# is usually a priority over speed in CI environments. Using a fresh | |
# runtime for each build is more reliable since the runtime is completely |
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
-- Renames the outputs and inputs of the RODE RODECaster Pro II. | |
-- | |
-- Place this file inside ~/.config/wireplumber/main.lua.d/ | |
-- | |
-- Tips on using the RODE RODECaster Pro II on Linux: | |
-- - Use PipeWire together with WirePlumber. I'm using the following packages on | |
-- Arch Linux: pipewire pipewire-alsa pipewire-pulse pipewire-jack wireplumber. | |
-- Optional packages: qpwgraph | |
-- - Configure the RODE RODECaster Pro II to use the 'Pro Audio' profile | |
-- - Your node names might differ. Run `pactl list sinks` and `pactl list sources` to check assigned names. |
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
#!/bin/bash | |
# Create associative mapping array | |
declare -A GPTID_TO_DISKID | |
while read -r row; do | |
gptid=$(echo "$row" | cut -d ' ' -f1) | |
diskid=$(echo "$row" | cut -d ' ' -f3 | rev | cut -d 'p' -f2 | rev) | |
if [[ "$gptid" = "gptid"* ]]; then | |
GPTID_TO_DISKID[$gptid]=$diskid |
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 bash | |
# | |
# Switches the current default audio sink to the next available sink using pactl. | |
# Get all sinks via pactl | |
sinks=$(pactl list short sinks | cut -f 2) | |
# Get current default sink | |
current_sink=$(pactl info | grep "Default Sink" | cut -d ' ' -f 3) |