Looping through filenames in Bash

January 21st, 2024 – 1:59 am
Tagged as: Computing Notes

To loop through the subdirectories in a folder, when those subdirectories may contain spaces in the file names, use the following procedure. OLD_IFS=$IFS && IFS=$’\n’ for directory in $HOME/somefolder/*/; do echo “some code here” done IFS=$OLD_IFS  

Bash and *nix Note no. 2

January 10th, 2024 – 6:18 am
Tagged as: Computing Notes

  This document contains some notes on .bashrc for use with Linux systems. alias ll=’ls -alF’ alias la=’ls -A’ alias l=’ls –CF’ if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi The preceding two blocks come standard on Ubuntu as of version 2022.04. One tweak for WSL2 on Windows might be the addition of this [...]

Bash and *nix Note no. 1

July 7th, 2023 – 11:41 pm
Tagged as: Computing Notes

7 July 2023: Ubuntu 22.04′s update notifier seems to not include the option to configure any settings, at least after certain conditions exist on a particular system.  To stop the notifier from appearing.  To stop the notifier from appearing use sudo apt-get remove update-notifier 7 July 2023: There are non-snap builds of ungoogled-chromium for Ubuntu [...]

Minecraft Tweaks

March 16th, 2023 – 2:34 am
Tagged as: Computing Notes

To launch java -Xms2048M -Xmx2048M –add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server-1.21.1.jar nogui