Skip to content

Instantly share code, notes, and snippets.

View itowhid06's full-sized avatar
🎯
Finding my feet...

Towhidul I Chowdhury itowhid06

🎯
Finding my feet...
View GitHub Profile

Increasing the amount of inotify watchers

If you are not interested in the technical details and only want to get Listen to work:

  • If you are running Debian, RedHat, or another similar Linux distribution, run the following in a terminal:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
@itowhid06
itowhid06 / xampp-linux.md
Last active January 20, 2023 12:29 — forked from ijash/xampp-linux.md
XAMPP/LAMPP desktop shortcut or menu icon for ubuntu

XAMPP/LAMPP desktop shortcut or menu icon for ubuntu

in terminal: sudo gedit /usr/share/applications/xampp-control-panel.desktop then add:

#!/usr/bin/env xdg-open
[Desktop Entry]
Comment=Start or Stop XAMPP
@itowhid06
itowhid06 / custom-queries.php
Created October 31, 2020 04:50 — forked from carlodaniele/custom-queries.php
An example plugin showing how to add custom query vars, rewrite tags and rewrite rules to WordPress
<?php
/**
* @package Custom_queries
* @version 1.0
*/
/*
Plugin Name: Custom queries
Plugin URI: http://wordpress.org/extend/plugins/#
Description: This is an example plugin
Author: Carlo Daniele
@itowhid06
itowhid06 / hierarchy.php
Created September 26, 2020 14:45 — forked from johnbillion/hierarchy.php
ASCII WordPress Template Hierarchy
<?php
/*
WordPress Theme Template Hierarchy Last updated for WordPress 5.4
==================================
This diagram is partially simplified for legibility. To view the complete template hierarchy in use on your site see the
Template panel in the Query Monitor plugin.
@itowhid06
itowhid06 / gist:d27bd6708c4190d215697530c276723a
Created July 13, 2020 15:27 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@itowhid06
itowhid06 / bedrock-setup-guide.md
Created June 1, 2020 18:04 — forked from folbert/bedrock-setup-guide.md
How to get up and running with Bedrock and Bedrock Capistrano at Oderland

Getting up and running with Bedrock

If you get totally stuck, here are some resources that may help you: Roots Discourse. Actually, you may want to head over and read this through really quick. It's nowhere near as long as this and may be good to have in the back of your mind when reading the rest of this document. Capistrano Website with manual Screencast on deploying WordPress with Capistrano.

Bedrock?

Bedrock is created by the good awesome people behind Sage and is described as a "WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure." Read more at https://roots.io/bedrock.

@itowhid06
itowhid06 / amp-lovecraft-theme-compat.php
Created May 24, 2020 16:57 — forked from westonruter/amp-lovecraft-theme-compat.php
WordPress plugin to add AMP compatibility to the Lovecraft theme by Anders Norén. For use with the official AMP plugin in Standard or Transitional template modes: https://wordpress.org/plugins/amp/
<?php
/**
* AMP Lovecraft Theme Compat plugin bootstrap.
*
* @package Google\AMP_Lovecraft_Theme_Compat
* @author Weston Ruter, Google
* @license GPL-2.0-or-later
* @copyright 2020 Google Inc.
*
* @wordpress-plugin
@itowhid06
itowhid06 / ajax.upload.js
Created March 30, 2020 05:54 — forked from mklasen/ajax.upload.js
Upload files to WordPress with ajax via REST API
var data = new FormData()
// Add data/files to formdata var
jQuery.ajax({
url: wpApiSettings.root + 'routehere/v1/subroute/save',
type: 'POST',
beforeSend: function(xhr) {
xhr.setRequestHeader( 'X-WP-Nonce', wpApiSettings.nonce );
},
@itowhid06
itowhid06 / gist:39ef5964e8b8629560391a5307e14dd8
Created November 15, 2019 05:32
composer without memory limit
`alias composer="php -d memory_limit=-1 /usr/local/bin/composer"`
Add that line to your bash profile if you want to use composer without limits permanently.
@itowhid06
itowhid06 / wpmudev-forminator-paypal-submit-buttons.php
Created November 12, 2019 11:34 — forked from wpmudev-sls/wpmudev-forminator-paypal-submit-buttons.php
[Forminator] - Toggle PayPal button. Extend existing functionality of Forminator to include a conditional submit and PayPal button
<?php
/**
* Plugin Name: [Forminator] - Add submit button to an existing form with PayPal button
* Plugin URI: https://premium.wpmudev.org/
* Description: Extend existing functionality of Forminator to include a conditional submit and PayPal button (as of 1.9)
* Author: Alessandro Kaounas @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/