[Python] Read TOML file in one line
Use pathlib to read and tomllib to parse the file. (requires Python >= 3.11)
Use pathlib to read and tomllib to parse the file. (requires Python >= 3.11)
Arch Wiki: environment variables
/etc/profile is sourced by all POSIX-compatible shells upon login./etc/profile.d/ directory will also be read.~/.profile or ~/.bash_profile for login bash instances.~/.bashrc for every interactive bash instance.~/.zshenv for environment variables in all zsh instances.~/.zprofile for every login zsh instance.~/.zshrc for every interactive zsh instance.Note
zsh does not source ~/.profile by default because of the difference between bash and zsh syntaxes. You can add this line to ~/.zprofile or ~/.zshenv to make zsh shells read `~/.profile correctly.
~/.xinitrc is sourced by startx.~/.xprofile is sourced by display managers (e.g., GDM, SDDM)~/.config/environment.d/*.conf: sourced by systemd. Also, they are used in Wayland sessions where xinitrc and xprofile files are not available.Environment variables in Powershell
Variables created by set are bound to the current session and not persistent.
[Environment]::SetEnvironmentVariable('KEY', 'VAL', 'Machine')SETX KEY VALGit filter-repo is a filter-branch replacement for rewriting history written in a single-file python script.
To wipe large binary files entirely:
commit are discarded.commit)Erase all history in the Git repo to start over with all the current files. This also clears big file records in the Git database.
git checkout --orphan newBranch # Create an orphan branch to hold the files
git add -A && git commit # Add all files and commit them
git branch -D main # Deletes the main branch
git branch -m main # Rename the current orphan branch to main
git push -f origin main # Force push main branch to remote (e.g. github)
git gc --aggressive --prune=all # Remove the old files in the database
Run Github actions after successful Cirrus CI runs with the check_suite trigger.
For example, how to find changed PHP files between latest and the commit before it: 1