April 2nd, 2024 by
L'ecrivain
Open the Thunderbird program folder (e.g. C:\Program Files (x86)\Thunderbird)
create a new folder named distribution
Create a file named policies.json with the following content:
{
"policies": {
"DisableAppUpdate": true
}
}
Thanks to sifferedd.
Posted in Computing Notes | Tagged:
Mozilla, Thunderbird
April 2nd, 2024 by
L'ecrivain
Use printenv to see what environment variables are set.
#!/usr/bin/env bash
printenv
set -x
Posted in Computing Notes | Tagged:
Bash, Linux
April 2nd, 2024 by
L'ecrivain
Edit $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 "\
Posted in Computing Notes | Tagged:
CentOS, Linux, Nano
April 2nd, 2024 by
L'ecrivain
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
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'
Posted in Computing Notes | Tagged:
Bash, CentOS, Linux