import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'
import type { RootState } from 'src/store/store'
import { SuccessListAPIResponse } from 'src/types/api-response';
import { MessageCategory } from 'src/types/category';
import { msgCategoriesService } from '@services/msg-categories.service';
// declaring the types for our state
export type MsgCategoriesState = {
categories: Array<MessageCategory>,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fetch 1 | |
2025-04-14 15:20:28.763 DEBUG 536 --- [nio-8051-exec-1] org.hibernate.SQL : | |
select | |
business0_.id as id1_46_0_, | |
business0_.created_at as created_2_46_0_, | |
business0_.created_by_audit as created_3_46_0_, | |
business0_.created_date as created_4_46_0_, | |
business0_.last_modified_by as last_mod5_46_0_, | |
business0_.last_modified_date as last_mod6_46_0_, | |
business0_.state as state7_46_0_, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Postman Test Script for Automatic Token Decryption | |
// Add this script to the "Tests" tab in your Postman request | |
// Configuration - Change this to match your secret key | |
const secretKey = "SECRET_KEY"; | |
// Parse the response body | |
const responseBody = pm.response.json(); | |
let decryptedData = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Prints text with support for bold sections (marked with **) and automatic line breaks | |
* @param {object} doc - The PDF document object | |
* @param {number} startY - The starting Y position | |
* @param {string} text - The input text with ** marking bold sections | |
* @param {object} options - Additional options for formatting | |
* @param {number} options.pageMargin - Page margin (default: 40) | |
* @param {number} options.innerPadding - Inner padding (default: 10) | |
* @param {number} options.lineSpacing - Spacing between lines (default: 10) | |
* @param {number} options.fontSize - Font size (default: 10) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Table User { | |
Id uuid [pk] | |
FirstName varchar | |
LastName varchar | |
Email varchar | |
Phone varchar | |
Password varchar | |
Role Role | |
Status UserStatus | |
CreatedAt datetime [default: `now()`] |
import axios from 'axios';
import {IResponse} from '@interfaces/IResponse';
const upload = async (file: File): Promise<IResponse> => {
const UPLOAD_PRESET: string = (import.meta.env.VITE_CLOUDINARY_UNSIGNED_UPLOAD_PRESET as string);
const CLOUDINARY_NAME: string = (import.meta.env.VITE_CLOUDINARY_CLOUDNAME as string);
const CLOUDINARY_API_KEY: string = (import.meta.env.VITE_CLOUDINARY_API_KEY as string);
const CLOUDINARY_SECRET: string = (import.meta.env.VITE_CLOUDINARY_SECRET as string);
const CLOUDINARY_IMAGES_FOLDER: string = (import.meta.env.VITE_CLOUDINARY_IMAGES_FOLDER as string);
People
![]() :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: |
Resolving Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead.
If you're trying to run git push origin main
or basically accessing your remote git and you get the bellow error this blog is for you to get it resolved
remote: Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead.
remote: Please see https://github.blog/2020-07-30-token-authentication-requirements-for-api-and-git-operations/ for more information.
Code is clean if it can be understood easily โ by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
NewerOlder