Skip to content

Instantly share code, notes, and snippets.

View RaihanIIUC's full-sized avatar
🎯
Focusing

Mohammed Raihan RaihanIIUC

🎯
Focusing
View GitHub Profile
@cdsaenz
cdsaenz / index.html
Created August 19, 2022 14:11
Demo Alpine JS and Fetch from Remote API
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Alpine Ajax test</title>
</head>
<body>
<h1>Users API Retrieval Test</h1>
@fajarwz
fajarwz / install-laravel-swoole
Last active December 22, 2023 15:50
install laravel swoole on Ubuntu 21.04
# using Ubuntu
# install laravel first
laravel new my-app
# get laravel octane package
composer require laravel/octane
# maybe you encountering an error such as "require ext-curl". You can install it with this command
sudo apt-get install php-curl
# then install it again using "composer require laravel/octane"
@theodorosploumis
theodorosploumis / Nework_throttling_profiles.md
Last active July 8, 2025 12:48
Web development - Custom network throttling profiles
Profile download (kb/s) upload (kb/s) latency (ms)
Native 0 0 0
GPRS 50 20 500
56K Dial-up 50 30 120
Mobile EDGE 240 200 840
2G Regular 250 50 300
2G Good 450 150 150
3G Slow 780 330 200
@caeb92
caeb92 / README.MD
Created February 22, 2020 21:24
PM2 fork and cluster mode configuration examples

Configure a new PM2 ecosytem

You must especificate the file JSON wich have the proper configuration for your app wich environment do you want to use (declared in your ecosystem file).

pm2 start ecosystem_cluster_mode.json --env production
pm2 save (Autostart your application when PM2 service is started/restarted)
pm2 ls (Shows PM2 runnings apps)
netstat -ntpl | grep pm2 (Filter running PM2 applications)

Flag --env

sudo mysql -u root
mysql> USE mysql;
mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> exit;
service mysql restart
@bmaupin
bmaupin / free-database-hosting.md
Last active August 14, 2025 13:44
Free database hosting
@morcegon
morcegon / .htaccess
Created March 21, 2018 13:35
.htaccess optimized for laravel
# Apache configuration file
# httpd.apache.org/docs/2.2/mod/quickreference.html
# Note .htaccess files are an overhead, this logic should be in your Apache
# config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html
# Techniques in here adapted from all over, including:
# Kroc Camen: camendesign.com/.htaccess
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
# Sample .htaccess file of CMS MODx: modxcms.com
@amici-fos
amici-fos / ford_fulkerson.c
Created February 5, 2017 07:04
Ford Fulkerson algorithm in C
#include "queue.h"
#include <stdio.h>
#include "geometry.h"
#define MAXV 100 /* the Maximum number of vertices */
#define MAXDEGREE 50 /* maximum outdegree for the vertex*/
typedef struct {
int v; /* neighboring vertex */
int capacity; /* capacity of edge */
int flow; /* flow through edge */
int residual; /* residual capacity of edge */