Skip to content

Instantly share code, notes, and snippets.

View cccaaannn's full-sized avatar
🏠
Working from home

Can Kurt cccaaannn

🏠
Working from home
View GitHub Profile
@cccaaannn
cccaaannn / convert_lottie_to_gif.sh
Created March 24, 2025 10:53
Convert lottie to gif
npm install -g puppeteer-lottie-cli
puppeteer-lottie -i "lottie.json" -o frame-%d.png
ffmpeg -r 30 -i frame-%d.png -filter_complex "[0:v]fps=30,split[a][b];[a]palettegen=reserve_transparent=on:transparency_color=ffffff[p];[b][p]paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle" output.gif
@cccaaannn
cccaaannn / webp_png.sh
Last active November 5, 2024 21:52
webp to png all folder
for file in *.webp; do ffmpeg -i "$file" "out/$(basename "${file%.webp}.png")"; done
# mkdir -p out && for file in *.webp; do ffmpeg -i "$file" "out/$(basename "${file%.webp}.png")"; done
@cccaaannn
cccaaannn / download_images.js
Created August 13, 2024 00:11
Download images with node
const https = require('https');
const fs = require('fs');
const imageUrls = [
]
const padFileName = (index) => {
let str = index.toString();
while (str.length < 3) {

K8s cluster in docker with k3d

Install k3d

sudo curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash

Create k8s cluster

sudo k3d cluster create  --k3s-arg "--tls-san="@server:*
@cccaaannn
cccaaannn / YouTube_Shorts_ProgressBar.js
Created March 5, 2022 16:54
Brings 'YouTube shorts' to 21st century, where we have control over things that we watch.
// ==UserScript==
// @name YouTube Shorts ProgressBar
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Brings 'YouTube shorts' to 21st century, where we have control over things that we watch.
// @author Can Kurt
// @match *://www.youtube.com/*
// @license MIT
// ==/UserScript==