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 | |
# Set the device name, find it using xinput list | |
# deviceName="G2Touch Multi-Touch by G2TSP" | |
# Get touchscreen device id, if it's too slow, hardcode it | |
# deviceId=$(xinput list | grep "$deviceName" | awk '{print $7}' | awk -F '=' '{print $2}') | |
# Hardcoding this because it seems a bit slow and the cursor disappears | |
deviceId=11 |
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 | |
# Function to print error messages | |
error_exit() { | |
echo "Error: $1" | |
exit 1 | |
} | |
# Function to generate ctags with a progress bar, only for new/modified files | |
generate_ctags() { |
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 | |
PowerShell script to add a custom context menu item to windows Desktop, | |
that uses BgInfo.exe from sysinternals to display PC info on desktop. | |
.DESCRIPTION | |
This script sets up BGInfo by downloading it if necessary, creating a batch file to run it, | |
and adding a context menu item to the desktop background for easy access. | |
- dpk, 09/2024 |
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 | |
# Function to exit on error | |
exit_on_error() { | |
echo "Error: $1" | |
exit 1 | |
} | |
# Update system | |
sudo apt update || exit_on_error "Failed to update package list" |
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 | |
# Function to exit on error | |
exit_on_error() { | |
echo "Error: $1" | |
exit 1 | |
} | |
# Stop all running Docker containers | |
echo "Stopping all Docker containers..." |