Skip to content

Instantly share code, notes, and snippets.

@ErxrilOwl
ErxrilOwl / laravel_aws_ami_deploy.md
Last active May 17, 2025 13:00
Deploy Laravel Project on AWS EC2 AMI

Deploying Laravel Application on AWS EC2

Reference

Launch the instance

Select Amazon Linux AMI 2018.03.0 (HVM), SSD Volume Type

Configure Security Group

Add rule of HTTP and HTTPS

Launch Amazon RDS Database

@khaphanspace
khaphanspace / shopee.js
Created January 20, 2020 17:47
Snippet code tính tổng chi tiêu Shopee & Tiki
var totalOrders = 0;
var totalSpent = 0;
var totalShippingSpent = 0;
var pulling = true;
var offset = 0;
function getStatistics() {
var orders = [];
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
@emaraschio
emaraschio / SOLID.markdown
Last active February 16, 2025 23:43
SOLID Principles with ruby examples

SOLID Principles with ruby examples

SRP - Single responsibility principle

A class should have only a single responsibility.

Every class should have a single responsibility, and that responsibility should be entirely encapsulated. All its services should be narrowly aligned with that responsibility, this embrace the high cohesion.

OCP - Open/closed principle

Software entities should be open for extension, but closed for modification.