Skip to content

Instantly share code, notes, and snippets.

View soulbliss's full-sized avatar

Deepak Garasangi soulbliss

View GitHub Profile
/* Spiderman */
@layer base {
  :root {
    --background: 210 100% 20%;
    --foreground: 0 100% 50%;
    --card: 210 100% 25%;
    --card-foreground: 0 100% 55%;
    --popover: 210 100% 30%;
    --popover-foreground: 0 100% 60%;
@soulbliss
soulbliss / setUpStripeSubscription.js
Created June 10, 2024 13:20
Code to setup stripe subscriptions. Code credits to @marc_louvion
// app > api > webhook > stripe > js route.js -->
import { NextResponse } from 'next/server';
import { headers } from 'next/headers';
import Stripe from 'stripe';
import connectMongo from '@/libs/mongoose';
import User from '@models/User';
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY);
const webhookSecret = process.env.STRIPE_WEBHOOK_SECRET;
@soulbliss
soulbliss / AddMicForChatGPT.js
Last active June 6, 2024 11:37
This adds a microphone button beside ChatGPT enter button. Supports voice result addition to existing text as well.
const urlToSelectorMap = {
// "https://labs.perplexity.ai/": 'textarea[placeholder="Ask anything..."]',
"https://chatgpt.com/": 'textarea[placeholder="Message ChatGPT"]',
};
// Initialize the SpeechRecognition object
window.SpeechRecognition =
window.webkitSpeechRecognition || window.SpeechRecognition; // webkitSpeechRecognition for Chrome and SpeechRecognition for FF
function getInputElement(url) {
@soulbliss
soulbliss / gist:b6f4406535823e5e7e0524d19a8de70a
Created April 29, 2024 06:32
next js VS Code custom editor labels config
"workbench.editor.customLabels.patterns": {
"**/app/**/page.tsx": "${dirname} - Page",
"**/app/**/layout.tsx": "${dirname} - Layout",
"**/component/**/index.tsx": "${dirname} - Component"
},
@soulbliss
soulbliss / affiliateCookieRemover.js
Created April 6, 2024 15:20
Marc Louvion's script to nuke affiliate cookie
// Nuke 'em all
// Marc's tweet https://twitter.com/marc_louvion/status/1776629697046339969
import { useEffect } from 'react';
useEffect(() => {
let referral_url = new URL(window?.location?.href);
if (
referral_url?.searchParams?.has('gclid') &&
#!/bin/bash
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m'
sudo apt-get update
printf "${GREEN}update libraries required for docker${NC}"
sudo apt-get install \
90 1 bARaAhavavyAhataSamBuSakteH g. sg. m. bARa-Ahava-vyAhata-SamBu-Sakti 4 viseranam 2 rartisambanxah
90 2 Asattim acc. sg. f. Asatti 3 karma 3 karma
90 3 AsAdya abs. AN_sad 9 purvakalah 9 purvakalah
90 4 janArdanasya g. sg. m. janArdana 2 rartisambanxah 5 rartisambanxah
90 5 SarIriRA i. sg. m. SarIrin 10 viseranam 6 viseranam
90 6 jEtraSareRa i. sg. m. jEtra-Sara 10 viseranam 9 karanam
90 7 yatra ind. yatra 9 axikaranam 9 axikaranam
90 8 niHSaNkam ind. niHSaNka 9 kriyaviseranam 9 viseranam
90 9 Uze pft. ps. sg. 3 uz 0 root 0 root