{"id":19218882,"url":"https://github.com/bearlike/scripts","last_synced_at":"2025-05-13T00:22:46.344Z","repository":{"id":42202500,"uuid":"432452716","full_name":"bearlike/scripts","owner":"bearlike","description":"Collection of automation scripts. I hope you find it useful.","archived":false,"fork":false,"pushed_at":"2025-03-11T12:04:50.000Z","size":4292,"stargazers_count":24,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T05:02:05.767Z","etag":null,"topics":["automation","bash","faas","linux","maintainance","python","scripts","scripts-collection","scripts-python","self-hosted","serverless","sysadmin-scripts","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bearlike.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-27T12:17:53.000Z","updated_at":"2025-03-07T07:08:31.000Z","dependencies_parsed_at":"2025-03-06T03:35:57.235Z","dependency_job_id":null,"html_url":"https://github.com/bearlike/scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearlike%2Fscripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearlike%2Fscripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearlike%2Fscripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearlike%2Fscripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bearlike","download_url":"https://codeload.github.com/bearlike/scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249958604,"owners_count":21351681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","bash","faas","linux","maintainance","python","scripts","scripts-collection","scripts-python","self-hosted","serverless","sysadmin-scripts","windows"],"created_at":"2024-11-09T14:28:36.544Z","updated_at":"2025-04-20T20:32:07.730Z","avatar_url":"https://github.com/bearlike.png","language":"Python","readme":"\u003c!-- Generated on 2025-04-01 10:47:12+00:00  --\u003e\n\n\u003c!-- Do not edit this file. Edit README.md/base.md.j2 instead. --\u003e\n# Scripts\n\nCollection of automation scripts. Use it if you have the same purpose.\n\n[![CC BY 4.0](https://img.shields.io/badge/license-CC%20BY%204.0-brightgreen)](license.md)\n[![DeepSource](https://deepsource.io/gh/bearlike/scripts.svg/)](https://deepsource.io/gh/bearlike/scripts/)\n\nGot scripts? See [Contributing](.github/CONTRIBUTING.md).\n\u003cbr\u003e Got Issues? See [Issues](https://github.com/bearlike/scripts/issues)\n\n## Extras\n\n- The [`openfaas-function` folder](openfaas-function/README.md) contains OpenFaaS functions, a framework for building serverless functions on containers with simplified Kubernetes deployment. It's portable across environments, supports any language, and features automatic scaling with built-in observability.\n    - Example (`GET` `/function/llm-global-spend`):\n      ![litellm-sample](/openfaas-function/docs/litellm-sample.png)\n- The [`OpenWebUI` folder](python/openwebui) contains plugins (pipes, filters and functions) for OpenWebUI, a web interface for interacting with LLMs. These plugins enable agent workflows, logging, and other advanced features.\n\n## Lot of Scripts\n\n\n|                 Title                  |                                                Filename                                                |       Type       |                                                                                              Description                                                                                               |\n| -------------------------------------- | ------------------------------------------------------------------------------------------------------ | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| LiteLLM Spend Tracker                  | [`openfaas-function/`](openfaas-function/README.md)                                                    | Serverless       | Hierarchical spend visibility across multiple time horizons is provided by a time-segmented API cost tracker that aggregates LLM usage data.                                                           |\n| Portainer Service Recovery Function    | [`openfaas-function/`](openfaas-function/README.md)                                                    | Serverless       | On-demand service stack recovery solution that intelligently identifies and remediates service disruptions in Portainer-managed containers.                                                            |\n| Pipe – Monte Carlo Tree Search (MCTS)  | [`pipe_mcts.py`](python/openwebui/pipe_mcts.py)                                                        | OpenWebUI        | Monte Carlo Tree Search Pipe Addon for OpenWebUI with support for OpenAI and Ollama endpoints. [**`Demo 📹`**](docs/videos/pipe_mcts.gif)                                                              |\n| Pipe – OpenAI ReAct + Langfuse         | [`pipe_react.py`](python/openwebui/pipe_react.py)                                                      | OpenWebUI        | OpenAI ReAct Agent as a Pipe Addon for OpenWebUI using existing tools, with streaming and citations. Implemented with LangGraph.                                                                       |\n| Fancy MOTD                             | [`fancy_motd.sh`](bash/fancy_motd.sh)                                                                  | Bash             | A really cool MOTD that displays system information on login. [**`Screenshot 🖼️`**](https://i.imgur.com/GibVoZM.jpg)                                                                                   |\n| Raspberry Pi MOTD                      | [`status_motd_rpi.sh`](bash/status_motd_rpi.sh)                                                        | Bash             | Raspberry Pi MOTD that displays basic system information on login. [**`Screenshot 🖼️`**](https://i.imgur.com/jlRtMrF.jpg)                                                                              |\n| Nextcloud Snapshot                     | [`nextcloud_snapshot.sh`](bash/nextcloud_snapshot.sh)                                                  | Bash             | Snapshot Nextcloud and uploads to remote locations such as Google Drive. Can be used as a Cronjob.                                                                                                     |\n| Clean System                           | [`clean-system.sh`](bash/clean-system.sh)                                                              | Bash             | Removing unused `apt` packages, kernels, thumbnail cache, and docker objects.                                                                                                                          |\n| Update System                          | [`update-system.sh`](bash/update-system.sh)                                                            | Bash             | For Updating `apt` Packages and Portainer via docker.                                                                                                                                                  |\n| Alias and functions                    | [`alias.sh`](bash/alias.sh)                                                                            | Bash             | Human friendly aliases and functions                                                                                                                                                                   |\n| Send notificatiovs via gotify          | [`gotify-send.sh`](bash/gotify-send.sh)                                                                | Bash             | Send notifications via gotify                                                                                                                                                                          |\n| Measure Voltage RPi                    | [`measure_volts_rpi.sh`](bash/measure_volts_rpi.sh)                                                    | Bash             | Display Raspberry Pi voltage and checks if it is undervolted.                                                                                                                                          |\n| Scan Pages                             | [`scan_page.sh`](bash/scan_page.sh)                                                                    | Bash             | Scan a page from my HP flatbed scanner through SANE (Scanner Access Now Easy) interface                                                                                                                |\n| Gotify Docker Stack                    | [`gotify/docker-compose.yml`](/docker-compose/gotify/docker-compose.yml)                               | docker-compose   | Basic Gotify Docker stack. [Refer documentation](https://gotify.net/docs/)                                                                                                                             |\n| Homeassistant Docker Stack             | [`homeassistant/docker-compose.yml`](/docker-compose/homeassistant/docker-compose.yml)                 | docker-compose   | Home Assistant stack with healthcheck \u0026 support for accessing host docker containers. [`configuration.yaml`](/docker-compose/homeassistant/configuration.yaml) with some custom sensors (VPN IP, etc.) |\n| Local Sites Docker Stack               | [`local_sites/docker-compose.yml`](/docker-compose/local_sites/docker-compose.yml)                     | docker-compose   | Docker stack to host static site(s)                                                                                                                                                                    |\n| MongoDB Docker Stack                   | [`mongodb/docker-compose.yml`](/docker-compose/mongodb/docker-compose.yml)                             | docker-compose   | MongoDB and Mongo Express                                                                                                                                                                              |\n| Nextcloud Docker Stack                 | [`nextcloud/docker-compose.yml`](/docker-compose/nextcloud/docker-compose.yml)                         | docker-compose   | The Nextcloud Docker stack that I use.                                                                                                                                                                 |\n| NGINX Proxy Manager Docker Stack       | [`nginx_proxy_manager/docker-compose.yml`](/docker-compose/nginx_proxy_manager/docker-compose.yml)     | docker-compose   | Simple NGINX Proxy Manager Docker Stack                                                                                                                                                                |\n| Pi-Hole Docker Stack                   | [`pihole/docker-compose.yml`](/docker-compose/pihole/docker-compose.yml)                               | docker-compose   | Simple Pi-Hole Docker Stack                                                                                                                                                                            |\n| ScanservJS Docker Stack                | [`scanner_app/docker-compose.yml`](/docker-compose/scanner_app/docker-compose.yml)                     | docker-compose   | SANE web UI frontend for scanners.                                                                                                                                                                     |\n| Secrets Manager Docker Stack           | [`simple_secret_manager/docker-compose.yml`](/docker-compose/simple_secret_manager/docker-compose.yml) | docker-compose   | Secure storage, and delivery for tokens Visit [bearlike/simple-secrets-manager](https://github.com/bearlike/simple-secrets-manager) to know more.                                                      |\n| Watchtower Docker Stack                | [`watchtower/docker-compose.yml`](/docker-compose/watchtower/docker-compose.yml)                       | docker-compose   | Simple Watchtower Docker Stack                                                                                                                                                                         |\n| Gluetun + qBittorrent Docker Stack     | [`qbitorrent+gluetun/docker-compose.yml`](/docker-compose/qbitorrent%2Bgluetun/docker-compose.yml)     | docker-compose   | qBittorrent with all connection routed through a Gluetun container (VPN). Purely for educational purpose                                                                                               |\n| Gluetun + qBittorrent Docker Stack     | [`qbitorrent+tor/docker-compose.yml`](/docker-compose/qbitorrent%2Btor/docker-compose.yml)             | docker-compose   | qBittorrent with all connection routed through the Tor network (via SOCKS5). Not recommended (See why on the inline comments). Purely for educational purpose                                          |\n| Wireguard Docker Stack                 | [`wireguard/docker-compose.yml`](/docker-compose/wireguard/docker-compose.yml)                         | docker-compose   | Simple Wireguard Docker Stack                                                                                                                                                                          |\n| Download Torrents on Colab             | [`notebooks/Ultra_Torrent_Downloader.ipynb`](/notebooks/Ultra_Torrent_Downloader.ipynb)                | Jupyter Notebook | Downloading Torrents using Google Colab. Powered by qBittorrent WebUI and ngrok.                                                                                                                       |\n| Macro Keyboard                         | [`Lua Macros/marco_keyboard.lua`](lua/Lua%20Macros/marco_keyboard.lua)                                 | Lua              | Load this script in [Lua Macros](https://github.com/me2d13/luamacros) to use multiple-keyboards for macro-triggerring application.                                                                     |\n| DPI Scaling                            | [`Increase_DPI_Monitor.ps1`](powershell/Increase_DPI_Monitor.ps1)                                      | Powershell       | Change DPI and Open-Shell Start Menu Orb size depending upon where you are sitting.                                                                                                                    |\n| Auto WG and Login Notification         | [`auto_wg_login_notification.ps1`](powershell/auto_wg_login_notification.ps1)                          | Powershell       | Connect to WireGuard Tunnel when not connected to home network and sends login notification.                                                                                                           |\n| Start X Server \u0026 SSH into a server     | [`start_xserver_and_connect_ssh.ps1`](powershell/start_xserver_and_connect_ssh.ps1)                    | Powershell       | Start X Server on Windows (Xming or VcXsrv) and SSH into a server                                                                                                                                      |\n| Cloudflare - Add DNS A record          | [`cloudflare_create_dns_record.py`](python/cloudflare_create_dns_record.py)                            | Python           | Adds DNS A record pointing to a mentioned server using Cloudflare API v4.                                                                                                                              |\n| Cloudflare - Delete DNS A record       | [`cloudflare_delete_dns_records.py`](python/cloudflare_delete_dns_records.py)                          | Python           | Deletes DNS A record pointing to a mentioned server using Cloudflare API v4.                                                                                                                           |\n| Deletes old files in a directory       | [`delete_old_file.py`](python/delete_old_file.py)                                                      | Python           | Periodically deletes old files from a directory. For use in torrent box(es).                                                                                                                           |\n| Find and Fix Git Email Leak            | [`find-fix-git-email-leak/`](https://github.com/bearlike/find-fix-git-email-leak/)                     | Python           | Find and Fix publicly accessible commit email addresses.                                                                                                                                               |\n| Macro Keyboard Companion               | [`macro_keyboard_companion.py`](python/macro_keyboard_companion.py)                                    | Python           | Companion script for my Macro Keyboard. `Lua Macros/marco_keyboard.lua` for keyboard input grabbing. Basic alternative for AutoHotKey.                                                                 |\n| Turn off Samsung TV                    | [`tv-shutdown.py`](python/tv-shutdown.py)                                                              | Python           | Turn off Samsung TV using `samsungctl`.                                                                                                                                                                |\n| Login Notification via Gotify          | [`login_notification.py`](python/login_notification.py)                                                | Python           | Retrieves `Gotify` tokens from `Simple Secrets Manager (SSM)` and sends notification on user login. For Windows, Use task scheduler to automate.                                                       |\n| Keyboard and Mouse Recorder \u0026 Replayer | [`record-kb-mouse-replay.py`](python/record-kb-mouse-replay.py)                                        | Python           | This script records mouse left-clicks and keyboard press events, including the time delays between them. When replaying, it reproduces the events in the correct order. With a PyQt5 GUI.              |\n\n**[`^        back to top        ^`](#scripts)**\n\n## License\n\n[![Creative Commons License](http://i.creativecommons.org/l/by/4.0/88x31.png)](http://creativecommons.org/licenses/by/4.0/)\n\u003cbr\u003e This work is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearlike%2Fscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbearlike%2Fscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearlike%2Fscripts/lists"}