| Description | Command |
|---|---|
| Start a new session with session name | screen -S <session_name> |
| List running sessions / screens | screen -ls |
| Attach to a running session | screen -x |
| Attach to a running session with name | screen -r |
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 | |
| # | |
| # (C)Copyright 2025 | |
| # Henri Shustak | |
| # Released Under the MIT licence | |
| # | |
| # Script which takes text via standard in and generates an audio file and then plays that audio file. | |
| # Text to speach is processed via elevenlabs.io API. You will require a API Key to get a valid response | |
| # | |
| # Usage : echo "hello, this is the text to speach system talking to you." | ~/bin/txt-2-speech-english.bash |
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
| # list audio soruces # look for .minitor | |
| pactl list short sources | |
| # record in flac | |
| parecord --channels=2 --file-format=flac --device=your.monitor output.flac | |
| # play back flac | |
| parecord -play output.flac | |
| # play back with play |
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
| # | |
| # ssh using the -N falg for establishing a tunnel is great.... but somtimes it is difficult to know if authentication has | |
| # been successful (especially if you have any kind of extended login delays setup on a remote system) and you are | |
| # authenticating with a password (did I type that correctly). | |
| # | |
| # this approach requires little additional setup and prevents lots of verbosity regarding the login. | |
| # | |
| # recive notification that authentication succeeded - bash | |
| ssh -v <user>@<remote-host> -p <port> -L <localport>:<tunnel-host>:<remoteport> -N 2> >(grep Authenticated >&2) |
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
| # reload hyperland configuration | |
| hyprctl reload | |
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 | |
| PATH=/bin:/usr/bin | |
| # | |
| # (C)Copyright 2025 Henri Shustak | |
| # | |
| # Licence : GNU GPLv3 or later | |
| # https://www.gnu.org/licenses/gpl-3.0.html | |
| # | |
| # | |
| # About : Check if a specific port is up or down on a specific host |
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
| def calculate_area(width, height) | |
| raise TypeError, "Width must be a number" unless width.is_a?(Numeric) | |
| raise TypeError, "Height must be a number" unless height.is_a?(Numeric) | |
| raise ArgumentError, "Width must be positive" unless width > 0 | |
| raise ArgumentError, "Height must be positive" unless height > 0 | |
| width * height | |
| end |
This set of cheat sheets is designed to assist you with using various browsers. Little tips and trickes may not know and which I will not remember. Leave a comment or start a discussion if you have something good to add to the list.
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 | |
| # memory monitor script | |
| # Henri Shustak | |
| # (C) 2022 GNU GPL v3 or later | |
| # basic path setup (good for most systems) | |
| PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
| # settings (this could be improved to use percentages)... |
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 | |
| rsync "$@" 2> >(grep -v vanished) | |
| ret=$? | |
| ((ret==24)) && exit 0 || exit $ret |
NewerOlder