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
| #!/data/data/com.termux/files/usr/bin/bash | |
| # samba-reaper | |
| # | |
| # checks samba logs for socket errors, and restarts the service if failing. | |
| # | |
| # smbd starts failing whenever android reclaims sockets due to network changes. | |
| # smbd keeps trying to accept() on invalid sockets causing high cpu usage. | |
| # | |
| # requires: termux-services, termux-api, inotify-tools, jq |
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
| # svg to multiple png | |
| for i in 16 20 24 30 32 36 40 48 60 64 72 80 96 256; do inkscape -d $i icon.svg -o icon-$i.png; done | |
| # multiple png to ico | |
| convert icon-*.png icon.ico |