Skip to content

Instantly share code, notes, and snippets.

View mushfiqweb's full-sized avatar

Mushfiqur Rahman mushfiqweb

View GitHub Profile
@mushfiqweb
mushfiqweb / 10-Jan-2023.bash
Created January 16, 2024 15:01
build failed 10-Jan-2023
cd $ANSIBLE_PATH && ansible-playbook -i stagehost_50 --limit stagehost1 stage-bl-cms-fe.yml --tags container_up -e "image_version=$image_version"
PLAY [Run new cms fe container] ************************************************
TASK [Run fe container] ********************************************************
fatal: [stagehost1]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": true, "cmd": "cd /app/myblapi/stage_new_cms_docker\nsh app-run-fe.sh \"v.1.0.0_blcmsfe_20240110_0215\"\n", "delta": "0:00:24.215461", "end": "2024-01-10 02:19:20.750061", "msg": "non-zero return code", "rc": 125, "start": "2024-01-10 02:18:56.534600", "stderr": "Unable to find image 'mybl-registry.banglalink.net/mybl-cms/stage-bl-cms-fe:v.1.0.0_blcmsfe_20240110_0215' locally\nv.1.0.0_blcmsfe_20240110_0215: Pulling from mybl-cms/stage-bl-cms-fe\n83ec2fc9c429: Already exists\nd6274c3231ab: Already exists\n4f4fb700ef54: Already exists\n4d795d74f0e2: Already exists\n04b15cf8a4c6: Alre
@mushfiqweb
mushfiqweb / 08-Jan-2023.bash
Created January 16, 2024 14:55
Build failed on 08-Jan-2023
2024/01/08 03:48:01 [error] 18#18: *4 FastCGI sent in stderr: "PHP message: PHP Deprecated: Optional parameter $conditions declared before required parameter $data is implicitly treated as a required parameter in /app/mybl/www-cms-be-api/app/Traits/CrudTrait.php on line 102" while reading response header from upstream, client: 192.168.107.241, server: localhost, request: "GET /api/v1/products/list/meta-data HTTP/1.1", upstream: "fastcgi://127.0.0.1:8999", host: "172.16.191.50:9443", referrer: "http://172.16.191.50:8445/"
2024/01/08 03:48:01 [error] 18#18: *5 FastCGI sent in stderr: "PHP message: PHP Deprecated: Optional parameter $conditions declared before required parameter $data is implicitly treated as a required parameter in /app/mybl/www-cms-be-api/app/Traits/CrudTrait.php on line 102" while reading response header from upstream, client: 192.168.107.241, server: localhost, request: "GET /api/v1/products?start=1&size=10&sorting=[]&globalFilter=&filters=[]&total=0&codes=[] HTTP/1.1", upstream: "fastcgi:
@mushfiqweb
mushfiqweb / 26-Nov-2023.bash
Created January 16, 2024 06:53
26-Nov-2023
[stage-0 12/16] ADD .env.example /var/www/html/.env 0.0s
=> ERROR [stage-0 13/16] RUN composer install && composer dump-autoload && composer clear-cache 0.6s
------
> [stage-0 13/16] RUN composer install && composer dump-autoload && composer clear-cache:
#0 0.377 Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
@mushfiqweb
mushfiqweb / menu.md
Created August 14, 2023 11:25
Elster navigationConfig ISSUE

Hello,

I hope this message finds you well. I wanted to share some feedback regarding the template I recently purchased last week.

Overall, the template seems well-organized and promising. However, I couldn't help but notice that there's an absence of examples showcasing multilevel parent-child menus. The current example in the template only includes a single level of parent-child menu relationships. I've been exploring the navigationConfig and its submenu items, and it appears that when I pass menu items to the submenu array and set the type to NAV_ITEM_TYPE_COLLAPSE for the parent, it creates only one level of nesting.

For clarity, I'm sharing my navigationConfig setup below:

const navigationConfig: NavigationTree[] = [
    {
@mushfiqweb
mushfiqweb / MenuJSON.js
Last active May 8, 2023 10:06
MenuJSON.js
const navigationConfig = [
{
id: "apps.ecommerce",
title: "ECommerce",
type: "collapse",
icon: "heroicons-outline:shopping-cart",
children: [
{
id: "e-commerce-products",
@mushfiqweb
mushfiqweb / Redux.Toolkit.Simple.app.tsx
Last active February 6, 2023 09:03
Simple Example of Redux Toolkit using TypeScript, React and extraReducers
import React from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { createSlice, createAsyncThunk } from '@reduxjs/toolkit';
interface User {
id: number;
name: string;
}
const fetchUser = createAsyncThunk('users/fetchUser', async (id: number) => {
@mushfiqweb
mushfiqweb / mushfiqwebOhMyPOSH.json
Last active December 1, 2022 05:11
My config file to oh-my-posh for Windows Terminal.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{.Folder}}",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#26C6DA",
"style": "plain",
@mushfiqweb
mushfiqweb / mushfiqwebPowerShellProfile.ps1
Last active October 16, 2023 06:28
My Windows Terminal Setup: PowerShel Profile
function Import-Module-With-Measure {
param ($ModuleName)
$import = Measure-Command {
Import-Module $ModuleName
}
Write-Host "$ModuleName took $($import.TotalMilliseconds) ms"
}
oh-my-posh --init --shell pwsh --config https://gist.githubusercontent.com/mushfiqweb/a761862a60ebfd809d234d711172d7a5/raw/7078718e31a6190b64dfef7084530d32cacafb64/mushfiqwebOhMyPOSH.json | Invoke-Expression
@mushfiqweb
mushfiqweb / WinReg.reg
Created July 8, 2021 05:42
Windows Registry Editor for Installing Windows 11
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\UI\Selection] “UIContentType”=”Mainline”
“UIRing”=”External”
“UIBranch”=”Dev”
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability]
BranchName”=”Dev”
“ContentType”=”Mainline”
“Ring”=”External”