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 | |
| # Ez a bash script ingyenesen használható és fejleszthető, CC0 alatt. | |
| # Meghatározhatsz egy időintervallumot, és a szkript minden alkalommal lejátszik egy hangot. | |
| # Megadhatsz szöveges üzenetet is, és megadhatsz egy időkeretet, amelyen kívül nem lesz emlékeztető. | |
| # Példa: 60 percenként: igyál vizet, de csak mondjuk 7-18 óra között. | |
| # (Az emlékeztetőhöz használható pl. a Suno vagy az ElevenLabs. | |
| # | |
| # NE FELEJTSD EL a fájlt futtathatóvá tenni: chmod +x <fájl> |
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 | |
| # This bash script code is free to use and develop, under CC0. | |
| # You can define a time interval, and the script will play a sound every time. | |
| # You can also specify a text message, and you can specify a timeframe outside of which there will be no reminder. | |
| # My use case: reminds me to drink water. | |
| # | |
| # DO NOT FORGET to make the file executable: chmod +x <file> | |
| # ====== Defaults ====== |
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 | |
| # This bash script code is free to use and develop, under CC0. | |
| # Paste it into a file named "netmonitor", and don't forget to run the "chmod +x netmonitor" command in its folder. | |
| # It is recommended to place the file in your main user folder for easy access: "~/netmonitor". | |
| # I used Suno for the notification sounds. ElevenLabs or similar voice generators may also be useful. | |
| # This is your task, I can't attach my any voice files here. | |
| # Ez a bash script kód ingyenesen használható és fejleszthető, CC0 alatt. | |
| # Illeszd be egy "netmonitor" nevű fájlba, és ne felejtsd el futtatni a "chmod +x netmonitor" parancsot a mappájában. |
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 | |
| langs=$(defaults read NSGlobalDomain AppleLanguages | tr -d '",() ') | |
| user_lang="en" | |
| if [[ "$langs" == *hu* ]]; then | |
| user_lang="hu" | |
| if [[ -z "$1" ]]; then | |
| echo "Használat: <min. 10 másodpercnyi kezdeti késleltetés> <min. 20 másodpercnyi ismétlődő időzítés>" | |
| echo "Pl. sleepmac 10 20 → 10 másodperc múlva elalszik a gép, majd ha aktív kijelzővel felébred (magától, vagy felébreszted), akkor 20 másodperc múlva erőltetve visszaalszik." | |
| echo "" |