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 June 15, 2024 14:54
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
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
@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 */