This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Handy Linux Commands I never want to forget ;) | |
# add your user to the suduers file | |
username ALL=(ALL) NOPASSWD:ALL | |
# Set the root user password for mysql, this allows logging in with no password | |
mysqladmin -u root -proot password '' | |
# Create the letsencrypt (certbot) test environment | |
cd letsencrypt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function run_as_root { | |
sudo -u root $@ | |
} | |
function apt_install { | |
run_as_root apt-get install -y --no-install-recommends $@ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=High-performance, schema-free document-oriented database | |
Documentation=man:mongod(1) | |
After=network.target | |
[Service] | |
Type=forking | |
User=mongodb | |
Group=mongodb |
NewerOlder