/scripts

Common scripts for various tasks

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Scripts

Common scripts for various tasks

curl -sSL https://raw.githubusercontent.com/nbspou/scripts/master/provision_root_base.sh | bash
curl -sSL https://raw.githubusercontent.com/nbspou/scripts/master/provision_root_redis.sh | bash
curl -sSL https://raw.githubusercontent.com/nbspou/scripts/master/provision_root_dogcat.sh | bash
curl -sSL https://raw.githubusercontent.com/nbspou/scripts/master/provision_root_adduser.sh | bash -s me

To add sudo access through password:

usermod -aG sudo me
passwd me

To add sudo access without password (on DigitalOcean):

usermod -aG sudo me
echo 'me ALL=(ALL) NOPASSWD:ALL' | sudo EDITOR='tee -a' visudo -f /etc/sudoers.d/90-cloud-init-users

Ensure that /etc/ssh/sshd_config has PasswordAuthentication no!

git config --global user.name "Jan Boon"
git config --global user.email "jan.boon@kaetemi.be"
git config --global push.default simple
git config --global user.name "NO-BREAK SPACE OÜ"
git config --global user.email "support@no-break.space"
git config --global push.default simple
git config --global user.name "JanDo Games"
git config --global user.email "jan@jandogames.com"
git config --global push.default simple
cat ~/.ssh/id_rsa.pub
curl -sSL https://raw.githubusercontent.com/nbspou/scripts/master/maintenance_root_redis.sh | bash
curl -sSL https://raw.githubusercontent.com/nbspou/scripts/master/maintenance_root_dogcat.sh | bash

Fix broken npm

apt install aptitude
aptitude reinstall nodejs

To get missing git submodules

git submodule update --init