Skip to content

Instantly share code, notes, and snippets.

View moh8med's full-sized avatar

Mohamed Hamdallah moh8med

View GitHub Profile
@moh8med
moh8med / README.md
Created January 4, 2023 05:55
Install the LEMP Stack on Ubuntu 22.04 LTS.

Initial Server Setup with Ubuntu 22.04

Introduction

When you first create a new Ubuntu 22.04 server, you should perform some important configuration steps as part of the basic setup. These steps will increase the security and usability of your server, and will give you a solid foundation for subsequent actions.

See: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-22-04

Step 1 — Logging in as root

If you are not already connected to your server, log in now as the root user using the following command (substitute the highlighted portion of the command with your server’s public IP address):

  • Maximum Open Files
You requested maxclients of 10000 requiring at least 10032 max file descriptors.
Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
@moh8med
moh8med / free_email_provider_domains.txt
Created June 29, 2019 17:54 — forked from blushingpenguin/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
126.com
150ml.com
15meg4free.com
@moh8med
moh8med / free_email_provider_domains.txt
Created June 29, 2019 14:53 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
126.com
150ml.com
15meg4free.com
@moh8med
moh8med / lumen-deploy.sh
Last active October 26, 2016 00:04
Simple Lumen deployment using lumen-deploy.sh
#!/bin/bash
#
# Variables
#
# DOCUMENT_ROOT="/path/to/lumen"
DOCUMENT_ROOT=$(dirname "$0")
supervisord -v > /dev/null 2>&1
SUPERVISORD_IS_INSTALLED=$?
@moh8med
moh8med / index.html
Last active October 14, 2016 18:45
Dependent Checkboxes
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Dependent Checkboxes</title>
<style>
body {
text-align: center;
}
.permission-group {