Skip to content

Collection of automation scripts. I hope you find it useful.

License

Notifications You must be signed in to change notification settings

bearlike/scripts

Repository files navigation

Scripts

Collection of automation scripts. Use it if you have the same purpose.

CC BY 4.0 DeepSource

Got scripts? See Contributing.
Got Issues? See Issues

Extras

  • The openfaas-function folder 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.
  • The OpenWebUI folder 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.

Lot of Scripts

Title Filename Type Description
LiteLLM Spend Tracker openfaas-function/ Serverless Hierarchical spend visibility across multiple time horizons is provided by a time-segmented API cost tracker that aggregates LLM usage data.
Portainer Service Recovery Function openfaas-function/ Serverless On-demand service stack recovery solution that intelligently identifies and remediates service disruptions in Portainer-managed containers.
Pipe – Monte Carlo Tree Search (MCTS) pipe_mcts.py OpenWebUI Monte Carlo Tree Search Pipe Addon for OpenWebUI with support for OpenAI and Ollama endpoints. Demo 📹
Pipe – OpenAI ReAct + Langfuse pipe_react.py OpenWebUI OpenAI ReAct Agent as a Pipe Addon for OpenWebUI using existing tools, with streaming and citations. Implemented with LangGraph.
Fancy MOTD fancy_motd.sh Bash A really cool MOTD that displays system information on login. Screenshot 🖼️
Raspberry Pi MOTD status_motd_rpi.sh Bash Raspberry Pi MOTD that displays basic system information on login. Screenshot 🖼️
Nextcloud Snapshot nextcloud_snapshot.sh Bash Snapshot Nextcloud and uploads to remote locations such as Google Drive. Can be used as a Cronjob.
Clean System clean-system.sh Bash Removing unused apt packages, kernels, thumbnail cache, and docker objects.
Update System update-system.sh Bash For Updating apt Packages and Portainer via docker.
Alias and functions alias.sh Bash Human friendly aliases and functions
Send notificatiovs via gotify gotify-send.sh Bash Send notifications via gotify
Measure Voltage RPi measure_volts_rpi.sh Bash Display Raspberry Pi voltage and checks if it is undervolted.
Scan Pages scan_page.sh Bash Scan a page from my HP flatbed scanner through SANE (Scanner Access Now Easy) interface
Gotify Docker Stack gotify/docker-compose.yml docker-compose Basic Gotify Docker stack. Refer documentation
Homeassistant Docker Stack homeassistant/docker-compose.yml docker-compose Home Assistant stack with healthcheck & support for accessing host docker containers. configuration.yaml with some custom sensors (VPN IP, etc.)
Local Sites Docker Stack local_sites/docker-compose.yml docker-compose Docker stack to host static site(s)
MongoDB Docker Stack mongodb/docker-compose.yml docker-compose MongoDB and Mongo Express
Nextcloud Docker Stack nextcloud/docker-compose.yml docker-compose The Nextcloud Docker stack that I use.
NGINX Proxy Manager Docker Stack nginx_proxy_manager/docker-compose.yml docker-compose Simple NGINX Proxy Manager Docker Stack
Pi-Hole Docker Stack pihole/docker-compose.yml docker-compose Simple Pi-Hole Docker Stack
ScanservJS Docker Stack scanner_app/docker-compose.yml docker-compose SANE web UI frontend for scanners.
Secrets Manager Docker Stack simple_secret_manager/docker-compose.yml docker-compose Secure storage, and delivery for tokens Visit bearlike/simple-secrets-manager to know more.
Watchtower Docker Stack watchtower/docker-compose.yml docker-compose Simple Watchtower Docker Stack
Gluetun + qBittorrent Docker Stack qbitorrent+gluetun/docker-compose.yml docker-compose qBittorrent with all connection routed through a Gluetun container (VPN). Purely for educational purpose
Gluetun + qBittorrent Docker Stack qbitorrent+tor/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
Wireguard Docker Stack wireguard/docker-compose.yml docker-compose Simple Wireguard Docker Stack
Download Torrents on Colab notebooks/Ultra_Torrent_Downloader.ipynb Jupyter Notebook Downloading Torrents using Google Colab. Powered by qBittorrent WebUI and ngrok.
Macro Keyboard Lua Macros/marco_keyboard.lua Lua Load this script in Lua Macros to use multiple-keyboards for macro-triggerring application.
DPI Scaling Increase_DPI_Monitor.ps1 Powershell Change DPI and Open-Shell Start Menu Orb size depending upon where you are sitting.
Auto WG and Login Notification auto_wg_login_notification.ps1 Powershell Connect to WireGuard Tunnel when not connected to home network and sends login notification.
Start X Server & SSH into a server start_xserver_and_connect_ssh.ps1 Powershell Start X Server on Windows (Xming or VcXsrv) and SSH into a server
Cloudflare - Add DNS A record cloudflare_create_dns_record.py Python Adds DNS A record pointing to a mentioned server using Cloudflare API v4.
Cloudflare - Delete DNS A record cloudflare_delete_dns_records.py Python Deletes DNS A record pointing to a mentioned server using Cloudflare API v4.
Deletes old files in a directory delete_old_file.py Python Periodically deletes old files from a directory. For use in torrent box(es).
Find and Fix Git Email Leak find-fix-git-email-leak/ Python Find and Fix publicly accessible commit email addresses.
Macro Keyboard Companion macro_keyboard_companion.py Python Companion script for my Macro Keyboard. Lua Macros/marco_keyboard.lua for keyboard input grabbing. Basic alternative for AutoHotKey.
Turn off Samsung TV tv-shutdown.py Python Turn off Samsung TV using samsungctl.
Login Notification via Gotify 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.

^ back to top ^

License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.