Skip to content

Instantly share code, notes, and snippets.

@cjkihl
cjkihl / settings.json
Created December 9, 2024 04:33
TailwindCSS Config for Autocomplete
{
// Config for VsCode Tailwind CSS IntelliSense extension for React
// Type hints for className and class attributes
"tailwindCSS.classAttributes": [
"class",
"className",
],
// Type hints for variables and properties ending with *className
"tailwindCSS.experimental.classRegex": [
@YuviGold
YuviGold / scrape_whatsapp.js
Created July 10, 2024 07:31
Whatsapp Group Exporter
/*
Inspired by https://gist.github.com/shaneapen/3406477b9f946855d02e3f33ec121975
The script scrapes the members of a WhatsApp group chat and exports the data to a CSV file.
It scrolls automatically and extracts each list item in the members list with all the information available.
Then it joins this information with the indexedDB data to get the groups the member is in and if the contact's info
if it is already saved in the phone.
Steps:
1. Open WhatsApp Web
@pmioduszewski
pmioduszewski / my-email-temp.tsx
Last active February 15, 2025 03:30
Send emails with react-email using next-i18next internationalization and Nextjs (pages router) on Vercel
import i18next from "i18next";
import { render } from "@react-email/render";
import {
Head,
Html,
// ...
} from "@react-email/components";
@ashbuilds
ashbuilds / server.ts
Last active August 17, 2025 07:15
Implementing GraphQL Subscriptions with Websockets in a Bun Server using graphql-yoga
import Bun from 'bun'
import { createYoga, YogaInitialContext, YogaServerInstance } from 'graphql-yoga'
import { makeHandler } from "graphql-ws/lib/use/bun";
import { ExecutionArgs } from "@envelop/types";
import { schema } from './graphql/schema';
interface IUserContext {
token?: string;
}
@SAFAD
SAFAD / unlike_all_pages_facebook.md
Created February 24, 2022 20:57
How to unlike all Facebook page at once

Unlike all facebook pages 2022

Go to: https://m.facebook.com/pages/launchpoint/liked_pages

Paste the following script into console (F12 -> console):

var unlike_all = ()=> {
	[].slice.call(document.querySelectorAll('[data-sigil="action-title"')).filter(x=>x.innerText.indexOf('Unlike') !=-1).map(x=>{x.click()});
	window.scrollTo(0,document.body.scrollHeight);
	window.setTimeout(unlike_all, 3 * 1000)
@danieltorscho
danieltorscho / on-merge-deploy-to-do.md
Last active October 17, 2025 23:29
GitHub Actions deploy nodejs to DigitalOcean Droplet

Github deployment

Requirements:

  • DigitalOcean Droplet (Ubuntu 20.04+) should be created
  • Github repository

Prepare DO Droplet Server:

  • ssh root@DROPLET_IP
  • sudo vi /etc/ssh/sshd_config
  • change PasswordAuthentication from no to yes
@developius
developius / README.md
Last active May 23, 2022 09:37
React Native + Ruby on Rails + AWS S3 Presigned PUT
@ErxrilOwl
ErxrilOwl / laraws_nginx.md
Last active May 31, 2024 15:46
Deploy Laravel on AWS EC2 Ubuntu (nginx)
@hofmannsven
hofmannsven / .env.github
Last active May 30, 2024 19:16
Notes on working with GitHub Actions and Laravel Nova.
APP_ENV=ci
APP_KEY=
APP_DEBUG=true
APP_URL=https://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=33306
@wmcmurray
wmcmurray / BasicCustomShader.js
Last active September 21, 2024 13:44
A basic example of a ThreeJS (r108) ShaderMaterial with shadows, fog and dithering support.
import { mergeUniforms } from 'three/src/renderers/shaders/UniformsUtils.js'
import { UniformsLib } from 'three/src/renderers/shaders/UniformsLib.js'
export default {
uniforms: mergeUniforms([
UniformsLib.lights,
UniformsLib.fog,
]),