This repo holds moste of my random small scripts, configs, paws(blobs)
Find a file
2024-06-17 22:19:09 +02:00
.forgejo/workflows Add Forgejo action demo to test how it works 2024-02-23 12:21:02 +01:00
Configs Set higer history limit 2024-06-06 00:22:26 +02:00
Docker/Docker-Compose/CashFab Fix typo 2024-06-06 00:35:43 +02:00
Docs/img Add: documentation for 24-bit-color.sh 2023-09-07 22:04:52 +02:00
PythonScripts Add: executable permissions 2024-03-22 23:40:59 +01:00
ShellScripts Add: a script to check IOMMU grouping 2024-03-13 21:08:11 +01:00
.gitignore Add: Micro editor settings & Add: micro buffers to git ignore 2024-03-21 23:05:16 +01:00
.gitmodules Add: tmux plugin manager repo as git submodule 2024-04-08 12:38:31 +02:00
LICENSE Initial commit 2023-05-11 14:54:10 +02:00
README.md Fix: missing prefix for tmux docs 2024-06-17 22:19:09 +02:00

Paws

This repo holds most of my random small scripts, configs, paws(blobs)


Contents


Configs

Cura

Materials

Clas Ohlsson's PLA

The material config file for Clas Ohlsson's PLA Materials


Tmux

My tmux config file. Some note worthy changes are:

  • prefix + r for quick reloading the config
  • higher history limit
  • alt + arrow keys to quickly change active panel

Docker

Docker Compose

README's are in there respectively docker compose folders

Python Scripts

rename_backslash.py

A script to replace backslashes(\) with in filenames within a directory and its sub-directories.

Run with ether of the commands below and replace <path> your actual path to the folder where the files are located that you want to rename.

python PythonScripts/rename_backslash.py <path>

or

PythonScripts/rename_backslash.py <path>

Shell Scripts

This folder has a loot of different shell scripts for everything from automating stuff to toys.

24-bit-color.sh

This script echoes a bunch of 24-bit color codes to the terminal to demonstrate its functionality and test color support of terminals.
An image showing four lines the first is fading black to red, second black to green, third black to blue, and the last is all rainbow colours


rsync-incremental-backups.sh

This script performs incremental backups of the specified source directory using rsync, and it keeps a symbolic link called 'latest' pointing to the most recent backup for easy reference. The script also logs backup details in a log file with a timestamp. Make sure to replace <input folder> and <output folder> with your actual source and backup directories.


set_dns_search_domain.sh

Is a small script that runs the resolvectl domain command when the specific a Wi-Fi network is gets connected.

  • To configure the system to run the script:
    You can configure your system to execute the script whenever the Wi-Fi connection event occurs. This typically involves using network manager scripts or similar mechanisms provided by your Linux distribution.
    replace the <Your_Targeted_WiFi_SSID>, <interface> and <domain> with the actual values you have.
    For example, with NetworkManager, you can place the script in the /etc/NetworkManager/dispatcher.d directory. Scripts in this directory are executed when network events occur.
sudo cp set_dns_search_domain.sh /etc/NetworkManager/dispatcher.d/

Ensure that the script has execute permissions:

sudo chmod +x /etc/NetworkManager/dispatcher.d/set_dns_search_domain.sh

The script will be automatically executed whenever the Wi-Fi connection event occurs. When the targeted Wi-Fi network is connected, the DNS search domain will be set for the specified interface.