Posted in Computing Notes on Jan 10th, 2026 Comments Off
What is the reason for a document on backing up one’s data? The reason is that this is a critical thing that one must get handled, out of the way, and automated in order to possess peace of mind while undertaking a comprehensive work involving data. For years I have searched for a great piece [...]
Posted in Computing Notes on May 18th, 2024 Comments Off
A few quirks with Debain 12 include that path not being set in similar fashion to Fedora, Ubuntu, and other distributions. One must regularly set export PATH=$PATH:/usr/sbin In Gnome, applications will open on the server instead of the client when using X11 forwarding. This will occur even though xcalc opens on the client normally. The [...]
Posted in Computing Notes on Apr 2nd, 2024 Comments Off
Use printenv to see what environment variables are set. #!/usr/bin/env bash printenv set -x
Posted in Computing Notes on Apr 2nd, 2024 Comments Off
The .bashrc file I use on CentOS6 # .bashrc # User specific aliases and functions alias rm=’rm -i’ alias cp=’cp -i’ alias mv=’mv -i’ # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # system variables export VISUAL=nano # sets nano as the crontab editor export GZIP=-9 # maximum compression [...]
Posted in Computing Notes on Mar 2nd, 2024 Comments Off
The best alias for ls is ls –halF It is easy to remember, and produces easy to read output with human readable file sizes and / marks present by the directory names..
Posted in Computing Notes on Feb 20th, 2024 Comments Off
A really good version of the ll alias is: ls –lahF, although on some versions ls –lahp looks better than F.
Posted in Computing Notes on Feb 1st, 2024 Comments Off
The following script scans PDFs via an auto-document feeder in Hp-Lip and then collates the pages to the correct order when there are reverse sides. No scans will be saved if no data is transmitted for the second set of scans. The second set of scans is the reverse of the pages. #!/usr/bin/env bash YMD=$(date [...]
Posted in Computing Notes on Jan 21st, 2024 Comments Off
Here is a script that checks to ensure the database is running and restarts the service if it is not running. This was used on a very low memory server to ensure a database remained operational, despite it sometimes crashing due to out of memory errors. #!/bin/bash timestamp=”$(date)” systemctl stop httpd && echo “${timestamp}” Stopping [...]
Posted in Computing Notes on Jan 21st, 2024 Comments Off
This is the code for a function in Bash script. #!/bin/bash # Define a function greet() { echo “Hello, $1″ } # Call the function with “World” as the argument greet “World”
Posted in Computing Notes on Jan 21st, 2024 Comments Off
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
Posted in Computing Notes on Jan 10th, 2024 Comments Off
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 [...]
Posted in Computing Notes on Jul 7th, 2023 Comments Off
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 [...]
Posted in Computing Notes on Mar 16th, 2023 Comments Off
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