Skip to content

Instantly share code, notes, and snippets.

View fadilxcoder's full-sized avatar
💭
🎮 💻 🎧 ☕

..-. .- -.. .. .-.. fadilxcoder

💭
🎮 💻 🎧 ☕
View GitHub Profile
@fadilxcoder
fadilxcoder / index.html
Created November 4, 2024 17:39
Maintenance Mode
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Maintenance Mode</title>
<link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">
<!-- Styles -->
<style>
@fadilxcoder
fadilxcoder / Makefile
Last active December 12, 2023 16:46
./installer.sh
.PHONY: install-sqlite install-ngrok install-proxy launch serveo install
install-sqlite:
sudo apt-get install php7.4-sqlite3
install-ngrok:
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null \
&& echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list \
&& sudo apt update \
&& sudo apt install ngrok
@fadilxcoder
fadilxcoder / database_structure.txt
Last active November 7, 2020 10:29
Symfony Form Collection & Twig / Macros
Facture
- id
- user_id
- client_id
- date
- total
FactureItems
- id
- facture_id
@fadilxcoder
fadilxcoder / main-file.php
Last active December 1, 2019 18:02
Resize Image Library
<?php
# ========================================================================#
# Requires : Requires PHP5, GD library.
# Usage Example:
# include("resize.class.php");
# $resizeObj = new resize('images/cars/large/input.jpg');
# $resizeObj -> resizeImage(150, 100, 0);
# $resizeObj -> saveImage('images/cars/large/output.jpg', 100);
# ========================================================================#