Skip to content

Instantly share code, notes, and snippets.

View RhythmShahriar's full-sized avatar
🎯
Focusing

Rhythm Shahriar RhythmShahriar

🎯
Focusing
View GitHub Profile
jQuery(document).ready(function($) {
let m1 = $('.elementor-nav-menu--main .clinical-care a');
let m2 = $('.elementor-nav-menu--main .social-impact a');
let m3 = $('.elementor-nav-menu--main .learning-health-system a');
m1.on('mouseenter', function(){
elementorFrontend.documentsManager.documents[675].getModal().hide();
elementorFrontend.documentsManager.documents[676].getModal().hide();
elementorProFrontend.modules.popup.showPopup( { id: 673 } );
});

Minimal nVIM | Setup

TESTED: Linux 20.04

Quick start script for Minimal nVIM

Automatic Setup

Run the command with sudo

# prefix to screens
unbind C-b
unbind '"'
unbind %
bind-key - split-window -h
bind-key | split-window -v
set-option -g prefix C-a
# quality of life
set -g history-limit 10000
<?php
/**
* Update the Permalink of a Specific Category
*
* @param $permalink
* @param $term
* @param $taxonomy
*
* @return mixed
*/
@RhythmShahriar
RhythmShahriar / domain.conf
Created May 30, 2020 13:49
supervisor config file for laravel queue
## Install - Ubuntu
# sudo apt install supervisor -y
## Place this file in /etc/supervisor/conf.d
## add this config for supervisor process
# supervisorctl reread
## Update the process
# supervisorctl update
[program:prod-app-queue-worker]
process_name=%(program_name)s_%(process_num)02d
@RhythmShahriar
RhythmShahriar / wp-multisite.conf
Created December 8, 2019 16:43
Nginx Config WordPress Multisite
#enable subdir multisite
#if (!-e $request_filename) {
# rewrite ^(/[^/]+/wp-admin)$ $scheme://$host$1/ redirect;
# rewrite ^(/[^/]+)?(/wp-.*) $2 last;
# rewrite ^(/[^/]+)?(/.*\.php) $2 last;
#}
#enabled subdir multisite media files
#rewrite ^(/[^/]+/)?files/(.+) /wp-includes/ms-files.php?file=$2;
cd repository
git checkout --orphan orphan_name
git rm -rf .
rm '.gitignore'
echo "#Title of Readme" > README.md
git add README.md
git commit -a -m "Initial Commit"
git push origin orphan_name
@RhythmShahriar
RhythmShahriar / .htaccess
Created February 11, 2019 05:17
Increase WordPress file Upload Limit inside a docker image
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
@RhythmShahriar
RhythmShahriar / equal-sized.js
Created May 21, 2018 14:23
This will equal height all grids as well as limit the title and also add (...) end of it
/**
* This will equal height all grids as well as
* limit the title and also add (...) end of it
*
* @author Rhythm Shahriar
* @version 1.0
*/
(function ($) {
//max equal heights parent and title
/**
* Google Translate Module
* @author Rhythm Shahriar
* @version 1.0
*/
//in body
//<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateInit"></script>
function googleTranslateInit() {
new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'en,ru', layout: google.translate.TranslateElement.FloatPosition.TOP_LEFT}, 'google_translate');