Skip to content

Instantly share code, notes, and snippets.

View Atif252's full-sized avatar

Atif Atif252

  • Contanuity
  • Pakistan
View GitHub Profile
@Atif252
Atif252 / start-services.sh
Created April 5, 2025 14:21
A macOS script that automates starting multiple microservices in VSCode by opening separate terminals and running yarn start (or provided command) in each one
#!/bin/bash
# Define the service folders
SERVICES=(
"api-gateway"
"micro-services/admin"
"micro-services/aggregator"
"micro-services/customer"
"micro-services/notification"
"micro-services/order"
# Set your new remote name here
NEW_REMOTE="origin"
# Fetch all branches from the remote
git fetch $NEW_REMOTE
# Loop through all local branches
for branch in $(git for-each-ref --format='%(refname:short)' refs/heads/); do
# Set the upstream to the corresponding branch on the new remote
git branch --set-upstream-to=$NEW_REMOTE/$branch $branch
export const LINKEDIN_OPTIMIZATION_GOAL = {
REACH: "Reach",
IMPRESSIONS: "Impressions",
LEADS: "Leads",
LANDING_PAGE_CLICKS: "Landing Page Clicks",
ENGAGEMENT_CLICKS: "Engagement Clicks",
} as const;
export const LINKEDIN_CAMPAIGN_OBJECTIVE_TYPE = {
BRAND_AWARENESS: "BRAND_AWARENESS",
@Atif252
Atif252 / compareEnvs.js
Created March 28, 2024 00:46
Find missing keys in a specific environment
const development = [
];
const staging = [
];
const prod = [
];
const developmentSet = new Set(development);
NULL 'jkillby5k@nps.gov' 'nps.gov' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'vanstiss5l@bravesites.com' 'bravesites.com' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'jbanting5m@last.fm' 'last.fm' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'lbarrack5n@pinterest.com' 'pinterest.com' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'wferrarini5o@themeforest.net' 'themeforest.net' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'bcoslitt5p@skyrock.com' 'skyrock.com' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'cburgett5q@vinaora.com' 'vinaora.com' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'satter5r@hubpages.com' 'hubpages.com' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'tcadwallader5s@narod.ru' 'narod.ru' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'yarch5t@livejournal.com' 'livejournal.com' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'mworsall0@booking.com' 'booking.com' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'ltrowel1@unblog.fr' 'unblog.fr' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'iianilli2@google.fr' 'google.fr' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'mbrimmicombe3@marriott.com' 'marriott.com' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'ngumary4@macromedia.com' 'macromedia.com' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'sdawnay5@goodreads.com' 'goodreads.com' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'ckellitt6@salon.com' 'salon.com' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'nstephens7@wikispaces.com' 'wikispaces.com' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'tgiorgiutti8@howstuffworks.com' 'howstuffworks.com' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
NULL 'gdeehan9@fastcompany.com' 'fastcompany.com' '231' '2022-11-22 11:02:31' '2022-11-22 11:02:31'
@Atif252
Atif252 / chess.js
Created September 18, 2023 06:53
Partial implementation of chess
const pieces = [
{
type: "rook",
team: "white",
column: "A",
row: 1,
isCaptured: false,
},
{
type: "knight",
@Atif252
Atif252 / .eslintrc.js
Created April 3, 2022 10:16
ES lint used by scott moss for next js
module.exports = {
extends: ['next/core-web-vitals', 'airbnb', 'airbnb/hooks', 'prettier'],
plugins: ['react', '@typescript-eslint', 'prettier'],
env: {
browser: true,
es2021: true,
node: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
@Atif252
Atif252 / marketplace.sol
Created February 27, 2022 10:04 — forked from dabit3/marketplace.sol
NFT Marketplace Smart Contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "hardhat/console.sol";
contract NFTMarketplace is ERC721URIStorage {
@Atif252
Atif252 / Market.sol
Created December 20, 2021 18:12
NFT Marketplace
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.2;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-0.8/token/ERC721/ERC721.sol";
import "hardhat/console.sol";