Skip to content

Instantly share code, notes, and snippets.

View AntoOnline's full-sized avatar

Anto Online AntoOnline

View GitHub Profile

Benefits of Serverless

  1. Cost-effective: Serverless computing only charges you for the actual usage, which can lead to cost savings compared to pre-allocated, always-on servers.
  2. Scalability: Serverless platforms automatically scale based on the number of requests, allowing your application to handle traffic spikes without manual intervention.
  3. Reduced operational overhead: With serverless computing, the cloud provider takes care of server management, so you can focus on developing and deploying your application.
  4. Faster time to market: Serverless architectures simplify the development and deployment process, allowing you to get your applications up and running more quickly.
  5. Pay-as-you-go pricing model: With serverless, you only pay for the compute resources you actually use, rather than pre-allocating resources.
  6. Event-driven architecture: Serverless platforms are designed to handle events, making it easy to build applications that respond to user actions, changes in data, or other triggers. 7

Ansible Cheat Sheet

Installation

pip install ansible

Inventory File (hosts)

[web]

Ubuntu Installation Cheat Sheet

Update and Upgrade System

sudo apt update
sudo apt upgrade

Install Essential Packages

@AntoOnline
AntoOnline / ClamAV Cheat Sheet.md
Last active July 14, 2023 09:08
ClamAV Cheat Sheet

ClamAV Cheat Sheet

Install ClamAV on Ubuntu:

sudo apt-get install clamav clamav-daemon

When the installation is complete:

@AntoOnline
AntoOnline / htaccess Cheat Sheet.md
Last active April 29, 2023 19:50
Useful htaccess Examples

.htaccess Cheat Sheet

Basic Redirects

301 Redirect (Permanent Redirect)

Redirect 301 /old-page.html /new-page.html

302 Redirect (Temporary Redirect)

@AntoOnline
AntoOnline / Security.txt
Last active May 19, 2020 02:50
Security check lists
# Image server daily
# Backup databases daily
# Disable drop permissions on mysql
# Update containers
# Ban know bad IPs
# Monitor CPU usage of host
# Update Wordpress: plugins, themes
# Enable WordPress plugin for:
- Minimal Coming Soon & Maintenance Mode
- Simple Google reCAPTCHA
@AntoOnline
AntoOnline / Fail2Ban Cheat Sheet.md
Last active April 29, 2023 19:51
Fail2Ban Cheat Sheet

Fail2Ban Cheat Sheet

Note:

  • When using Docker you can change the log driver to syslog

Typical file paths:

/etc/fail2ban/action.d/

MySQL Cheat Sheet

Connecting to MySQL Server

mysql -u [username] -p

Basic MySQL Commands