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 / 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
# Create a file .huskyrc with this content and placed in ~/.huskyrc
# ~/.huskyrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
#########################################
########## Wordpress core files #########
#########################################
*.htaccess
/wp-admin/
/wp-includes/
/*.php
/*.html
/*.txt