Skip to content

Instantly share code, notes, and snippets.

@abhishtagatya
abhishtagatya / autoclip.py
Last active January 14, 2025 05:29
Automation Script to Edit Videos for TikTok using Python
# _____ _ _____ _ _
# | _ |_ _| |_ ___| | |_|___
# | | | | _| . | --| | | . |
# |__|__|___|_| |___|_____|_|_| _|
# |_|
#
# By Abhishta (github.com/abhishtagatya)
# pip install gTTs
# pip install moviepy
@WomB0ComB0
WomB0ComB0 / reusable-providers.tsx
Created January 10, 2025 00:06
A reusable providers component that almost eliminates the need for context API
'use client';
import type { JSXElementConstructor, ReactNode } from 'react';
type InferProps<T> = T extends JSXElementConstructor<infer P> ? P : never;
type ProviderWithProps<T extends JSXElementConstructor<unknown>> = [
T,
Omit<InferProps<T>, 'children'>
];
@hopsoft
hopsoft / install-ruby.sh
Created May 21, 2019 16:13
Install ruby with rbenv and jemalloc on ubuntu
sudo apt-get update
sudo apt-get install libjemalloc-dev
RUBY_CONFIGURE_OPTS='--with-jemalloc' rbenv install 2.6.3
# test (look for jemalloc warnings)
MALLOC_CONF=invalid_flag:foo ruby -v
@asizikov
asizikov / deployment.yml
Created November 27, 2022 12:14
Run a deployment to productions when release tag is pushed
# https://blog.cloud-eng.nl/2022/11/26/environment-protection-tags/
name: ⚙️ deployment
# Controls when the workflow will run
on:
push:
tags:
- 'release_*'
jobs:
@lopspower
lopspower / README.md
Last active January 14, 2025 04:46
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@tuanchauict
tuanchauict / README.md
Last active January 14, 2025 04:16
Archive Quick Access Button

Archive Quick Access Button

A simple JavaScript script that adds a floating "Archive" button to specific news websites, allowing quick archiving via archive.md.

image image
@kyletaylored
kyletaylored / multisite-lando-config.yml
Last active January 14, 2025 03:59
Lando WordPress Network Site / Multisite (WPMS)
# Using the pantheon recipe / wordpress_network framework, we add a config to the
# appserver_nginx service to use our own server and vhost files. Copy the files lando
# uses and on the wordpress_network.conf.tpl and added wp/ to the rewrite
# rules so lando knows where our WP files live within our Bedrock setup.
appserver_nginx:
type: nginx
ssl: true
config:
server: 'private/config/lando/nginx.conf.tpl'
@korchasa
korchasa / aidir.sh
Last active January 14, 2025 03:58
A script that places all project files in the aichat REPL
#!/bin/bash
# Function: aidir
# Description:
# This function analyzes the project code in a given directory by recursively
# finding all files and processing them. It skips directories specified in the
# environment variable AIDIR_SKIP. If AIDIR_SKIP is not set, no directories are skipped.
# The function concatenates the content of text/source files into a single string
# and saves it to ~/.aidir. Then, it starts a REPL session with aichat, using the
# concatenated content as input.
@cliffordp
cliffordp / 1-head-tracking-code.html
Last active January 14, 2025 03:51
Get image file IDs from GoHighLevel Media Storage list view and display them in a sexy, smooth, cross-browser FsLightbox
<style id="fslightbox-customizations">
a.open-gallery > img {
width: 80%;
max-width: 745px;
border: 3px dashed white;
}
.fslightbox-container {
background: black;
}
</style>
@ayebrian
ayebrian / vmware.md
Last active January 14, 2025 03:48
VMware ESXi 8 / vCenter 8 / Workstation 17 license key 2024