Handy Hints and Tips that I have found useful
powercfg.exe /hibernate off
- Registry Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\ExtensionInstallForcelist
- String Value:
1
or the n+1 of the extensions currently installed - String Data:
your_extension_key
egjbkfoedolllekgbhcbcoahefnbanhhlh
Install docker and add user to group:
sh -c "$(curl -fsSL https://get.docker.com)"
sudo usermod -aG docker $USER
Add New User
(This will add a new user with SUDO permissions and will not need to enter a password when excalating use with caution!)
sudo useradd -m -g sudo -s /bin/bash alex
echo "alex ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/alex
sudo passwd alex
Disable Root
sudo sed -i 's/root:\/bin\/bash/root:\/usr\/sbin\/nologin/' /etc/passwd
Securing SSH
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin no/' /etc/ssh/sshd_config
sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
sudo systemctl restart sshd
ssh-keygen -p -N "" -f /path/to/key
tag:known-distributor type:peexe microsoft:clean signature:"Microsoft Corporation"
- Open Find menu
- Command + F on Mac
- Ctrl + F on Windows
- In the find box type:
^(\s)*$\n
- Leave the replace box empty
- Select 'Use Regular Expression'
- Select 'Replace All' button