# Forked from https://gist.github.com/gguerini
# Syntax edits by Sick Codes (GPLv3+)
# Disable menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Show remaining battery time; hide percentage
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
defaults write com.apple.menuextra.battery ShowTime -string "YES"| version: "3" | |
| networks: | |
| loki: | |
| services: | |
| loki: | |
| image: grafana/loki:2.4.0 | |
| volumes: | |
| - ./loki:/etc/loki |
| #GET A LIST OF INSTANCES | |
| #/usr/sap/hostctrl/exe/saphostctrl -function Listinstances -format Script | |
| #GET A LIST of databases | |
| saphostctrl -nr 99 -function Listdatabases | |
| # manage a db with the host agent | |
| # /usr/sap/hostctrl/exe/saphostctrl -nr 99 -function StopDatabase -dbname NPL -dbtype ada -user sapadm passwd | |
| #query a db with the host agent |
| #!/bin/zsh | |
| # exit when any command fails | |
| set -e | |
| # keep track of the last executed command | |
| trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG | |
| # echo an error message before exiting | |
| trap 'echo "\"${last_command}\" command filed with exit code $?."' EXIT |
| [project] | |
| name = "tool_testing" | |
| version = "0.1.0" | |
| description = "Ruff Tested Project" | |
| authors = [{ name = "", email = "" }] | |
| dependencies = [] | |
| requires-python = "==3.11.*" | |
| readme = "README.md" | |
| license = { text = "MIT" } |
| [Distribution] | |
| Distribution=arch | |
| [Content] | |
| Autologin=true | |
| Bootloader=none | |
| KernelCommandLine=rw | |
| Keymap=us | |
| Locale=en_US.UTF-8 | |
| MakeInitrd=no |
| #!/bin/sh | |
| CODE_BASE=/path/to/Storyboard | |
| SCRIPT_PATH=$(dirname "$0") | |
| DEPLOY_ROOT_PATH="${SCRIPT_PATH}/.." | |
| LOG_PATH="${DEPLOY_ROOT_PATH}/logs" | |
| BUILD_PATH="${DEPLOY_ROOT_PATH}/build/macos" | |
| VERSION= | |
| STATUS= | |
| REQUEST_UUID= |
Are you struggling with macOS GUI applications (like IDEs, text editors, or other tools launched from Finder or Spotlight) not finding command-line tools installed via Homebrew (/opt/homebrew/bin), MacPorts, or in custom directories like ~/bin or /usr/local/bin? This happens because GUI applications on macOS do not automatically inherit the PATH environment variable set by your login shell configuration files (like .zshenv, .zprofile, .bash_profile, or .bashrc). Your carefully configured shell PATH works in the Terminal, but GUI apps remain unaware of it.
This Bash script provides a simple, manual way to apply the PATH from your current Terminal session to the macOS GUI environment. Instead of complex automatic synchronization, you run this script whenever you want to update the PATH that GUI applications will use.
If your system is running slowly, perhaps a process is using too much CPU time and won't let other processes run smoothly. To find out which processes are taking up a lot of CPU time, you can use Apple's Activity Monitor.
The CPU pane shows how processes are affecting CPU (processor) activity:
