Skip to content

Instantly share code, notes, and snippets.

View manchumahara's full-sized avatar
💭
Life is beautiful!

Sabuj Kundu manchumahara

💭
Life is beautiful!
View GitHub Profile
@manchumahara
manchumahara / gist:b9a56590350503786fd170a97f4cd222
Created August 13, 2026 16:44
Shadcn based advance search filter
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Advanced Search Filter — shadcn-style demo</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
:root{
--background:0 0% 100%;
@manchumahara
manchumahara / gist:6491862c09d83f686630b099afcb9aa5
Created August 10, 2026 08:01
বাম রাজনোইতিক চিন্তাধারার দিক থকে গফুর এবং মহেষ চরিত্র বিশ্লেষণ
শরৎচন্দ্র চট্টোপাধ্যায়ের **‘মহেশ’** গল্পকে বাম রাজনৈতিক চিন্তার আলোকে পড়লে গফুর ও মহেশকে শুধু একজন দরিদ্র কৃষক ও তার গরু হিসেবে দেখলে গল্পটির গভীর সামাজিক তাৎপর্য ধরা পড়ে না। এখানে **শ্রেণি, জমিদারি শোষণ, সম্পত্তির মালিকানা, উৎপাদনব্যবস্থা, খাদ্যসংকট এবং রাষ্ট্রীয় ক্ষমতার অসম বণ্টন** একসঙ্গে কাজ করেছে। গফুরের ব্যক্তিগত দুর্দশা আসলে একটি বৃহত্তর শোষণমূলক কৃষকজীবনের প্রতিচ্ছবি। মহেশ সেই শোষণের সবচেয়ে মর্মস্পর্শী প্রতীক।
## গফুর: শোষিত কৃষক শ্রেণির প্রতীক
বাম রাজনৈতিক চিন্তার দৃষ্টিতে গফুরকে **গ্রামীণ নিপীড়িত শ্রমজীবী শ্রেণির প্রতিনিধি** হিসেবে পড়া যায়। তার নিজের নামে সামান্য জমি, উৎপাদনের উপকরণ, খাদ্য বা সঞ্চয় নেই। সে যে কৃষিকাজ করে, তার শ্রমের ওপর তার নিজের নিয়ন্ত্রণও সীমিত। জমিদার, মহাজন ও স্থানীয় ক্ষমতাবানদের সামনে সে প্রায় সম্পূর্ণ অসহায়।
গফুরের দারিদ্র্যকে ব্যক্তিগত ব্যর্থতা হিসেবে দেখার সুযোগ গল্পটি দেয় না। সে অলস নয়। সে কাজ করতে চায়, তার শ্রমের প্রয়োজন আছে, কিন্তু **শ্রম করলেই জীবনের মৌলিক নিরাপত্তা নিশ্চিত হচ্ছে না**। এখানেই চরিত্রটি শ্রেণিগত হয়ে ওঠে।
মার্কসবাদী বিশ্লেষণে উৎপাদনের উপকরণের মালিকানা এ
@manchumahara
manchumahara / fake_review.json
Created May 26, 2026 13:15
Fake Review with heading, content, star as json format
[
{
"heading": "Excellent Plugin for Daily Use",
"review": "This plugin saved me a lot of development time. Easy setup, clean interface, and works exactly as expected. Support was also very responsive.",
"star": 5
},
{
"heading": "Simple and Reliable",
"review": "I installed it on a client website and everything worked smoothly right away. The documentation is clear and beginner friendly.",
"star": 4
@manchumahara
manchumahara / hide_load_textdomain_just_in_time.php
Created April 21, 2026 06:29
Hide warning load_textdomain_just_in_time in wordpress
// In functions.php or a mu-plugin
add_filter('doing_it_wrong_trigger_error', function($trigger, $function_name) {
if ($function_name === '_load_textdomain_just_in_time') {
return false;
}
return $trigger;
}, 10, 2);
@manchumahara
manchumahara / gist:0b9e115b3796c593425fd34c60a09c25
Last active February 7, 2026 14:29
Codeboxr (Codeboxr.com) Public Profile
# Codeboxr Company Profile
More details online https://claude.ai/public/artifacts/4e232f7e-5bce-4b37-8d76-1d818a62809d
## Company Overview
**Company Name:** Codeboxr
**Website:** https://codeboxr.com
**Founded:** 2011
**Type:** Software Development Company
@manchumahara
manchumahara / deploy.yml
Created November 9, 2025 04:37
github to wordpress dir plugin release workflow
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
deploy:
name: Deploy WordPress Plugin
@manchumahara
manchumahara / event_cats.php
Last active September 15, 2025 05:13
Common Event category
<?php
$eventCategories = [
'theme' => [
'name' => 'Theme',
'items' => [
'Technology & Innovation',
'Business & Startups',
'Design & Creativity',
'Science & Research',
@manchumahara
manchumahara / TableDateFieldAsArray.php
Created January 9, 2025 10:56
Use a table field as array - php + wordpress
<?php
class TableDateFieldAsArray {
private $postId; // The post ID for context
private $primaryKey; // Primary key for rows
private $tableName; // Custom table name
private $fieldName; // Field in the table to store serialized data
private $data = []; // The actual data
private $nextIndex = 1;
private $usedKeys = []; // Track all used keys
<?php
class CBXChangelogOptionAsArray {
private $optionName;
private $primaryKey;
private $data = [];
private $nextIndex = 1;
private $usedKeys = [];
public function __construct($optionName = 'custom_optionname', $primaryKey = 'id') {
$this->primaryKey = $primaryKey;
<?php
class CBXChangelogMetaAsArray {
private $postId; // The post ID to which meta data will be saved
private $primaryKey;
private $metakey; // Meta key for saving and loading data
private $data = [];
private $nextIndex = 1;
private $usedKeys = []; // Track all used keys