Skip to content

Instantly share code, notes, and snippets.

View mahmudinm's full-sized avatar
😺
Hi there

Mahmudin muttaqin mahmudinm

😺
Hi there
View GitHub Profile
@mahmudinm
mahmudinm / ubuntu-nextjs-nginx-config-file
Created July 3, 2023 09:24 — forked from oelbaga/01 - Setup Nextjs site on Ubuntu Server - Terminal commands
Setup NextJS app on Digital Ocean Ubuntu server Full Terminal Commands Step by Step
#nginx config file for Nextjs App
#place in /etc/nginx/sites-available/name_of_config_file
server {
listen 80;
server_name domainname.com;
gzip on;
gzip_proxied any;
gzip_types application/javascript application/x-javascript text/css text/javascript;
gzip_comp_level 5;
@mahmudinm
mahmudinm / FontAwesome-v5.0.9-Free.json
Created October 13, 2020 09:46 — forked from sakalauskas/FontAwesome-v5.0.9-Free.json
List of all Font Awesome 5 icons in JSON Cheetsheet
{
"fas fa-address-book","fas fa-address-card","fas fa-adjust","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fas fa-allergies","fas fa-ambulance","fas fa-american-sign-language-interpreting","fas fa-anchor","fas fa-angle-double-down","fas fa-angle-double-left","fas fa-angle-double-right","fas fa-angle-double-up","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fas fa-archive","fas fa-arrow-alt-circle-down","fas fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-right","fas fa-arrow-alt-circle-up","fas fa-arrow-circle-down","fas fa-arrow-circle-left","fas fa-arrow-circle-right","fas fa-arrow-circle-up","fas fa-arrow-down","fas fa-arrow-left","fas fa-arrow-right","fas fa-arrow-up","fas fa-arrows-alt","fas fa-arrows-alt-h","fas fa-arrows-alt-v","fas fa-assistive-listening-systems","fas fa-asterisk","fas fa-at","fas fa-audio-description","fas fa-backward","fas fa-balance-scale","fas fa-ban","fas fa-band-aid","fas fa-barcode","fas fa-bars",
@mahmudinm
mahmudinm / filters.php
Created May 16, 2020 13:43 — forked from FlorianWeigang/filters.php
static laravel basic.auth with username and password in config file
<?php
/**
* change this definition in filters.php.
*
* the code checks if the auth parameters matches the credentials in your config file, if not
* a WWW-Authenticate Header will be send to the client.
*/
Route::filter('auth.basic', function () {
$login = false;
@mahmudinm
mahmudinm / bootstrap-pagination.php
Created October 15, 2018 06:43 — forked from ediamin/bootstrap-pagination.php
Bootstrap Pagination for WordPress
/*
* custom pagination with bootstrap .pagination class
* source: http://www.ordinarycoder.com/paginate_links-class-ul-li-bootstrap/
*/
function bootstrap_pagination( $echo = true ) {
global $wp_query;
$big = 999999999; // need an unlikely integer
$pages = paginate_links( array(