Skip to content

Instantly share code, notes, and snippets.

View mehedidb's full-sized avatar

Mehedi Hasan Nahid mehedidb

View GitHub Profile
@mehedidb
mehedidb / update-test.php
Created May 10, 2024 19:50 — forked from CruelDrool/update-test.php
Example of using "Update URI" (new in WordPress 5.8)
<?php
/*
Plugin Name: Testing Update URI
Author: Test Doe
Author URI: https://example.com
Update URI: https://example.com/current.json
Plugin URI: https://example.com
Description: This is a test plugin to test out the new plugin header field "Update URI".
Version: 1.0.0
*/
@mehedidb
mehedidb / .htaccess
Created October 10, 2023 08:18 — forked from Plastickid/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@mehedidb
mehedidb / Clean Zip.md
Created October 10, 2023 08:09
Create zip files cleaner for mac automator service to clean zip files

Clean Zip Service for Mac

In Automator create new workflow with the following settings

Service recieves selected: files or folders in: Finder.app

Run Shell Script

Shell: /bin/bash Pass input: to stdin

@mehedidb
mehedidb / vscode-remove-duplicate-lines.md
Created November 15, 2022 18:37 — forked from marcosvpj/vscode-remove-duplicate-lines.md
How to remove duplicate lines in Visual Studio Code?

If the order of lines is not important##

Sort lines alphabetically, if they aren't already, and perform these steps:
(based on this related question: https://stackoverflow.com/q/1573361/3258851)

  1. Control+F

  2. Toggle "Replace mode"

  3. Toggle "Use Regular Expression" (the icon with the .* symbol)

@mehedidb
mehedidb / website_copy_protection.htm
Created October 24, 2022 03:01 — forked from hlorand/website_copy_protection.htm
Website copy protection solutions
<!--
Simple webpage copy protection by hlorand
- diables selection
- disables right click
- prevents PrintScreening the page
- if page saved offline, hides body (uncomment to use it, and specify a domain) or shuffles characters
This code achieves above things using JavaScript. The content you want to protect
is located in the source code and a qualified programmer can easily extract it.
To make his work harder, a better solution is to dynamically download content
@mehedidb
mehedidb / speedup elementor.php
Created September 19, 2022 20:24 — forked from metaylimpo/speedup elementor.php
Speed Up Elementor
<?php
// disable google fonts
add_filter( 'elementor/frontend/print_google_fonts', '__return_false' );
// add font-display swap to elementor custom fonts
add_filter( 'elementor_pro/custom_fonts/font_display', function( $current_value, $font_family, $data ) {
return 'swap';
// you can also play also with $current_value & $font_family for specific requirments
}, 10, 3 );
/*
* Replace all SVG images with inline SVG
*/
jQuery('img.svg').each(function(){
var $img = jQuery(this);
var imgID = $img.attr('id');
var imgClass = $img.attr('class');
var imgURL = $img.attr('src');
jQuery.get(imgURL, function(data) {

UI Graphics

Websites and resources with modern UI components in different formats such as PSD, Sketch, Figma, etc. They are great for ideas for web components/UI

Website                            Description
UI Design Daily Awesome UI Components of all types
100 Daily UI Free Figma library of products, elements, and screens
Sketch App Sources Sketch UIs, wireframes, icons and

A

  • A bit of Vim - a book which aims to help you to learn how to use the Vim editor.
  • A.W.E.S.O.M. O - The really big list of really interesting open source projects.
  • AMP Project - The project enables the creation of websites and ads that are consistently fast, beautiful and high-performing across devices and distribution platforms.
  • APE - Angular JS REST Client.
  • ASCII Art - Real-Time ASCII Art Rendering Library
  • AST Explorer - A web tool to explore the ASTs generated by various parsers.
  • Advanced Bash-Scripting Guide - An in-depth exploration of the art of shell scripting by Mendel Cooper.
  • Advent of Code - is a series of small programming puzzles for a variety of skill levels.
https://greasyfork.org/en/scripts/by-site/feedly.com | User scripts for feedly.com
https://www.bing.com/images/search?q=csv&qs=n&form=QBIR&sp=-1&pq=csv&sc=8-3&cvid=8632C9AAFA2F40858B468BF74A3DED54&first=1&scenario=ImageHoverTitle | csv - Bing images
https://www.google.com/search?q=csv&tbm=isch | csv - Google Search
https://www.easyicon.net/iconsearch/csv | Csv icons - 21 free vector icons - Easyicon
https://www.flaticon.com/search?word=csv&search-type=icons&license=selection&order_by=4&grid=small | Search results for Csv - Flaticon
https://icons8.com/icons/set/csv | Csv Icons - Free Download, PNG and SVG
https://www.iconfont.cn/search/index?searchType=icon&q=csv | Iconfont-阿里巴巴矢量图标库
https://www.iconshock.com/csv-icons/ | Csv Icons - Iconshock
https://www.easyicon.net/language.en/iconsearch/iconset:ledicons/?s=addtime_DESC | Ledicons icons - 512 free vector icons - Easyicon
https://www.google.com/search?q=ledicons | ledicons - Google Search