Skip to content

Instantly share code, notes, and snippets.

View prosenjit-manna's full-sized avatar
๐ŸŽฏ
Focusing

Prosenjit Manna prosenjit-manna

๐ŸŽฏ
Focusing
  • Itobuz Technologies
View GitHub Profile
@prosenjit-manna
prosenjit-manna / app.tsx
Created March 18, 2025 13:20
Mantine Theme
import React from 'react';
import { ToastContainer } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import { MantineProvider } from '@mantine/core';
import { generateColors } from '@mantine/colors-generator';
import {
emotionTransform,
MantineEmotionProvider,
} from '@mantine/emotion';
@prosenjit-manna
prosenjit-manna / Dockerfile
Last active February 13, 2025 15:13
Custom Image with NVM and ubuntu
FROM ubuntu:22.04
USER root
# replace shell with bash so we can source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# update the repository sources list
# and install dependencies
RUN apt-get update \
&& apt-get install -y curl \
@prosenjit-manna
prosenjit-manna / Jenkinsfile
Created December 25, 2023 16:12 — forked from ybmadhu/Jenkinsfile
Sample Jenkinsfile to build, test and deploy Platform-as-Code in Openshift
pipeline {
/* run in any agent (a.k.a. node executor) */
agent any
stages {
stage('Setup') {
steps {
script {
/* Check the GIT_BRANCH to compute the target environment */
if (env.GIT_BRANCH == 'origin/develop' || env.GIT_BRANCH ==~ /(.+)feature-(.+)/) {
import React from 'react'
import { Virtuoso, VirtuosoHandle } from 'react-virtuoso';
import { useEffect, useRef, useState } from 'react';
export default function FooterVirtualScroll({ noMoreData, list }: { noMoreData: boolean; list: Array<any> }) {
return (
<div className='text-center py-4 text-gray-150'>
{!noMoreData && list.length > 0 && (
<>Loading ...</>
)}
const verifyPurchase = async (value: string, values: yup.TestContext<any>) => {
try {
await ticketApi.getPurchaseCode({ value: value });
return true;
} catch (e) {
values.createError({ path: 'purchase_code' });
return false;
}
};
@prosenjit-manna
prosenjit-manna / History|-1075673c|entries.json
Last active August 12, 2022 11:36
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/macbookpro/dev/envato-support-app/pages/tickets/commentForm.tsx","entries":[{"id":"VM0p.tsx","timestamp":1655211561483},{"id":"la0K.tsx","timestamp":1655211636102},{"id":"IXap.tsx","timestamp":1655211666202},{"id":"p2Ob.tsx","timestamp":1655211685236},{"id":"9N8V.tsx","timestamp":1655211716936},{"id":"9rst.tsx","timestamp":1655212226803},{"id":"2za8.tsx","timestamp":1655212869071},{"id":"6kp1.tsx","timestamp":1655212926553},{"id":"pkAr.tsx","timestamp":1655213411630},{"id":"Pwl7.tsx","timestamp":1655213507904},{"id":"xGrl.tsx","timestamp":1655213741788},{"id":"Iyb8.tsx","timestamp":1655213821274},{"id":"4Nvo.tsx","timestamp":1655213868890}]}
@prosenjit-manna
prosenjit-manna / 1-setup.md
Created May 29, 2020 08:19 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing with either GPG or Krypt.co.

@prosenjit-manna
prosenjit-manna / README.md
Created July 2, 2019 10:57 — forked from roachhd/README.md
EMOJI cheatsheet ๐Ÿ˜›๐Ÿ˜ณ๐Ÿ˜—๐Ÿ˜“๐Ÿ™‰๐Ÿ˜ธ๐Ÿ™ˆ๐Ÿ™Š๐Ÿ˜ฝ๐Ÿ’€๐Ÿ’ข๐Ÿ’ฅโœจ๐Ÿ’๐Ÿ‘ซ๐Ÿ‘„๐Ÿ‘ƒ๐Ÿ‘€๐Ÿ‘›๐Ÿ‘›๐Ÿ—ผ๐Ÿ”ฎ๐Ÿ”ฎ๐ŸŽ„๐ŸŽ…๐Ÿ‘ป

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. โœˆ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: ๐Ÿ˜„

git log --pretty=oneline
git format-patch -1 <commit id>
git apply mypatch.patch