Skip to content

Instantly share code, notes, and snippets.

View DevSecOpsGuy's full-sized avatar
🏦
Working from home

Showeb Arif Siddiquie DevSecOpsGuy

🏦
Working from home
View GitHub Profile
wget https://wordpress.org/latest.tar.gz
tar -zxvf latest.tar.gz
cp -rfv wordpress/ /var/www/html/
cd /var/www/html/
ls -l
chown www-data:www-data wordpress/
apt update
ufw status
apt install nginx
systemctl status nginx
ufw app list
ufw allow "nginx full"

How to Install Nginx with PHP and MySQL (LEMP Stack) on Ubuntu 20.04 LTS

Nginx (pronounced "engine x") is a free, open-source, high-performance HTTP server. Nginx is known for its high speed, stability, rich feature set, simple configuration, and low resource consumption. This tutorial shows how you can install Nginx on an Ubuntu 20.04 LTS server with PHP 7.4 support (through PHP-FPM) and MySQL support (LEMP = Linux + Nginx (pronounced "engine x") + MySQL + PHP).

Prerequisites
Ubuntu 20.04 LTS Server

Requirements

There are 18 questions in total. You will need five RHEL 8 (or CentOS 😎 virtual machines to be able to successfully complete all questions.

Optional Automatic Exam Setup Available

Here is an automated exam environment deployment for Mac/Linux/Windows that deploys the practice exam environment for you, including IPA server/client installation and configuration. You can also use your own lab environment. Navigate to the respective repo you wish to use for this practice exam and follow the README instructions:

https://github.com/rdbreak/rhce8env, https://github.com/rdbreak/ansible27env, https://github.com/rdbreak/ansible8env.

@DevSecOpsGuy
DevSecOpsGuy / Ampps.sh
Last active November 19, 2021 12:32
AMPPS 3.8 on Ubuntu 18.04.3 LTS
sudo apt-get update
sudo apt-get install libfontconfig1 libxrender1
wget http://s4.softaculous.com/a/ampps/files/Ampps-3.8-x86_64.run
sudo chmod 0755 Ampps-3.8-x86_64.run
sudo ./Ampps-3.8-x86_64.run
cd /usr/local/ampps
sudo ./Ampps
!If get error then try
@DevSecOpsGuy
DevSecOpsGuy / RH415.md
Created September 15, 2021 06:51 — forked from luckylittle/RH415.md
Red Hat RH415 Notes

Red Hat Security: Linux in Physical, Virtual and Cloud (RH415)

Last update: Mon Nov 18 05:32:46 UTC 2019 by @luckylittle


1. Managing Security & Risk

# USING YUM TO MANAGE SECURITY ERRATA:
@DevSecOpsGuy
DevSecOpsGuy / audit.rules
Created July 13, 2021 10:49 — forked from Neo23x0/audit.rules
Linux Auditd Best Practice Configuration
# IMPORTANT!
# This gist has been transformed into a github repo
# You can find the most recent version there:
# https://github.com/Neo23x0/auditd
# ___ ___ __ __
# / | __ ______/ (_) /_____/ /
# / /| |/ / / / __ / / __/ __ /
# / ___ / /_/ / /_/ / / /_/ /_/ /
# /_/ |_\__,_/\__,_/_/\__/\__,_/
@DevSecOpsGuy
DevSecOpsGuy / AdbCommands
Created July 12, 2021 16:29 — forked from ernestkamara/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@DevSecOpsGuy
DevSecOpsGuy / RH342.md
Created June 7, 2021 10:24 — forked from luckylittle/RH342.md
Red Hat RH342 Notes

Red Hat Enterprise Linux Diagnostics & Troubleshooting (RH342)

Last update: Fri Jul 26 08:23:20 UTC 2019 by @luckylittle


1. Troubleshooting principles

2. Generic issues

@DevSecOpsGuy
DevSecOpsGuy / rails.sh
Last active May 13, 2021 20:49
Ruby On Rails using rbenv
##Installing Ruby
# https://youtu.be/ABmt13zS7uM#
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn