*Memory MatrixWritings, notes, and data PagesCategories
Tags
|
Hypothesis test memo no. 11. R2 is the coefficient of determination, which is the square of the Pearson correlation coefficient, r, the formula for which is ρ=β1(σx/σy), where β1 is the parameter estimate. ASCI and Unicode text does not have a circumflex, ^, on top of the β. For this documentation the objective is multiplatform long-term readability so an equation editor with specialized support for circumflexes is out of the question. 2. There is also the existence of the rejection region method. We reject the null hypothesis if the test statistic’s absolute value is greater than the critical value, which we can express with the formula Reject if |t| > tα/2,n-1 Disable updates in ThunderbirdOpen the Thunderbird program folder (e.g. C:\Program Files (x86)\Thunderbird)
{
"policies": {
"DisableAppUpdate": true
}
}
Print environmental variables in BashUse printenv to see what environment variables are set. #!/usr/bin/env bash
printenv
set -x
.nanorc in CentOSEdit $HOME/.nanorc to contain the following: include /usr/share/nano/java.nanorc include /usr/share/nano/man.nanorc include /usr/share/nano/nanorc.nanorc include /usr/share/nano/python.nanorc include /usr/share/nano/sh.nanorc include /usr/share/nano/html.nanorc include /usr/share/nano/perl.nanorc include /usr/share/nano/php.nanorc CentOS 7 uses a much older version of nano than the one that presently ships on most distributions. The php.nanorc on newer The following should appear in /usr/share/nano/php.nanorc on CentOS7 to allow syntax highlighting for php:
## Syntax highlighting for PHP syntax "php" "\.(php[23457s~]?|phtml|ctp)$" # PHP markings. color brightgreen "()" # Function names. color white "\ The .bashrc file I use on CentOS6The .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
export XZ_OPT=-9 # maximum compressions
# ls modifications
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# calculator
calc() { echo "$*" | bc -l; }
# Generate a UUID
uuid() { UUID=$(cat /proc/sys/kernel/random/uuid) && echo $UUID; }
# CHANGE SHELL/WINDOW TITLE
# Works on Opensuse 15.3
# PS1=$PS1"\[\e]0;test1\a\]"
shellrename() { read -p "Enter new shell name: " name && PS1=$PS1"\[\e]0;${name}\a\]"; }
# For older versions of gnome-terminal
# shellrename() { read -p "Enter new shell name: " name && PROMPT_COMMAND='echo -ne "\033]0;${name}\007"'; }
# Zen Burn
# Another old way that works great in gnome-terminal while causing problems
# in some configurations involving SSH:
echo -ne '\e]12;#BFBFBF\a'
echo -ne '\e]10;#DCDCCC\a'
echo -ne '\e]11;#3F3F3F\a'
echo -ne '\e]4;0;#3F3F3F\a'
echo -ne '\e]4;1;#705050\a'
echo -ne '\e]4;2;#60B48A\a'
echo -ne '\e]4;3;#DFAF8F\a'
echo -ne '\e]4;4;#506070\a'
echo -ne '\e]4;5;#DC8CC3\a'
echo -ne '\e]4;6;#8CD0D3\a'
echo -ne '\e]4;7;#DCDCCC\a'
echo -ne '\e]4;8;#709080\a'
echo -ne '\e]4;9;#DCA3A3\a'
echo -ne '\e]4;10;#C3BF9F\a'
echo -ne '\e]4;11;#F0DFAF\a'
echo -ne '\e]4;12;#94BFF3\a'
echo -ne '\e]4;13;#EC93D3\a'
The best Alias for lsThe best alias for ls is
It is easy to remember, and produces easy to read output with human readable file sizes and / marks present by the directory names.
Document z240302wa, last modified 2 March, 2024
Install iftop on Oracle Linux 9dnf install oracle-epel-release-el9 iptraf is already in the default repositories. A good version of llA really good version of the ll alias is: ls –lahF, although on some versions ls –lahp looks better than F. LS alias and Mozilla DRM barSome useful aliases that are not always preconfigured on every Linux version:
To eliminate the DRM warning in Firefox and Librewolf without enable DRM, add this to “userChrome.css”: notification[value="drmContentDisabled"]{ display:none !important; }
toolkit.legacyUserProfileCustomizations.stylesheets must be set to true in about config. Double Sided Scan and PDFThe 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 +"%Y-%m-%d")
Y=$(date +"%Y")
WORKDIR=/home/username/Temp/
OUTPATH=/home/username/Scans/${Y}/
# Create a folder, ~/Temp and create a folder, ~/Scans
mkdir -p "/home/username/Scans/${Y}"
hp-scan --adf --mode=color &&
PART=hpscan
LATESTSCAN=`ls -t ${PART}*pdf | sed "1q"`
echo "${LATESTSCAN} ready for ${FILEOUTPUT}"
# Why you shouldn't parse the output of ls
# http://mywiki.wooledge.org/ParsingLs
# This does not use the FILEOUTPUT variable itself because the cp command
# seems to have trouble copying the file correctly, even with switches.
# Thanks Elektropepi at https://github.com/qpdf/qpdf/issues/259
function pdfscanmerge() {
if [ $# -ne 3 ]; then
echo "Usage: pdfscanmerge
Automated Database RestartHere 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 Apache... >> /home/centos/administration/apache.log
systemctl is-active mariadb && echo "${timestamp}" MariaDB is active so not starting >> /home/centos/administration/mariadb_active.log || echo "${timestamp}" MariaDB is not Active >> /home/centos/administration/mariadb_inactive.log
systemctl is-active mariadb && echo "${timestamp}" No need to restart MariaDB || systemctl start mariadb
systemctl start httpd && echo "${timestamp}" restarting apache...>> /home/centos/administration/apache.log
AppImage IntegrationTo install AppImages and integrate them with the desktop environment like a conventional package, use the AppImage Launcher. LibreWolf’s documentation contains a how-to document on using AppImage Launcher. |