Welcome to Note
- ** Collection of Information **
Welcome to Note
Config files /etc/nginx/nginx.conf # Generated by nginxconfig.io # https://www.digitalocean.com/community/tools/nginx user www-data; pid /run/nginx.pid; worker_processes auto; worker_rlimit_nofile 65535; # Load modules include /etc/nginx/modules-enabled/*.conf; events { multi_accept on; worker_connections 65535; } http { charset utf-8; sendfile on; tcp_nopush on; tcp_nodelay on; server_tokens off; log_not_found off; types_hash_max_size 2048; types_hash_bucket_size 64; client_max_body_size 16M; # MIME include mime.types; default_type application/octet-stream; # Logging access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log warn; # SSL ssl_session_timeout 1d; ssl_session_cache shared:SSL:10m; ssl_session_tickets off; # Diffie-Hellman parameter for DHE ciphersuites ssl_dhparam /etc/nginx/dhparam....
Export a PostgreSQL database dump To export PostgreSQL database we will need to use the pg_dump tool, which will dump all the contents of a selected database into a single file. We need to run pg_dump in the command line on the computer where the database is stored. So, if the database is stored on a remote server, you will need to SSH to that server in order to run the following command:...
Working with local repositories git init This command turns a directory into an empty Git repository. This is the first step in creating a repository. After running git init, adding and committing files/directories is possible. Usage: # change directory to codebase $ cd /file/path/to/code # make directory a git repository $ git init In Practice: # change directory to codebase $ cd /Users/computer-name/Documents/website # make directory a git repository $ git init Initialized empty Git repository in /Users/computer-name/Documents/website/....
1. Using ‘sendmail’ Command Sendmail is a most popular SMTP server used in most of Linux/Unix distribution. Sendmail allows sending email from command line. Use below instructions to send email using ‘sendmail‘ command. Created a file with email content: cat /tmp/email.txt Subject: Terminal Email Send Email Content line 1 Email Content line 2 Subject: line will be used as subject for email. Now send email using the following command....
UFW (uncomplicated firewall) is a firewall configuration tool that runs on top of iptables, included by default within Ubuntu distributions. It provides a streamlined interface for configuring common firewall use cases via the command line. This cheat sheet-style guide provides a quick reference to common UFW use cases and commands, including examples of how to allow and block services by port, network interface, and source IP address. How To Use This Guide This guide is in cheat sheet format with self-contained command-line snippets....