Skip to content

Instantly share code, notes, and snippets.

@dnviti
dnviti / almalinux-postinstall.sh
Created December 22, 2021 18:50
Almalinux Post Install
#!/bin/bash
#set -o xtrace
if [[ $USER != "root" ]]
then
echo "Script must be run as root"
exit 1
fi
sed -i "s/#Port/Port/g" /etc/ssh/sshd_config
@dnviti
dnviti / almalinux-postinstall.sh
Last active November 25, 2021 16:56
AlmaLinux Docker Post-Install
#!/bin/bash
if [[ $USER != "root" ]]
then
echo "Script must be run as root"
exit 1
fi
AAA=$(grep "Port " /etc/ssh/sshd_config)
OLD_SSH_PORT=${AAA:5:99}
@dnviti
dnviti / gist:df248c91e5978453058c60a1c9769116
Last active March 16, 2022 09:02
Firefox Edge-Like Scrolling
general.smoothScroll.msdPhysics.enabled = true
general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS = 250
general.smoothScroll.msdPhysics.motionBeginSpringConstant = 400
general.smoothScroll.msdPhysics.regularSpringConstant = 400
general.smoothScroll.msdPhysics.slowdownMinDeltaMS = 120
general.smoothScroll.msdPhysics.slowdownMinDeltaRatio = 0.4
general.smoothScroll.msdPhysics.slowdownSpringConstant = 5000
mousewheel.min_line_scroll_amount = 22
toolkit.scrollbox.horizontalScrollDistance = 4
toolkit.scrollbox.verticalScrollDistance = 5