Skip to content

Instantly share code, notes, and snippets.

@gtnbssn
gtnbssn / ffmpegBlackToAlpha.sh
Created July 26, 2021 11:36
ffmpeg: make black pixels transparent
# from https://stackoverflow.com/questions/38578363/ffmpeg-overlaying-one-video-on-another-one-and-making-black-pixels-transparent
ffmpeg -i [INPUT VIDEO] -filter_complex "[0]split[m][a];
[a]geq='if(gt(lum(X,Y),16),255,0)',hue=s=0[al];
[m][al]alphamerge" output.webm
@gtnbssn
gtnbssn / init.lua
Created December 17, 2021 11:37
init.lua with treesitter, LSP and completion
vim.opt.shiftwidth=4
vim.opt.expandtab = true
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.smartindent = true
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.ignorecase = true
vim.opt.smartcase = true
vim.opt.swapfile = false
---
import { items } from "../navigation.json";
import XElement from 'astro-xelement';
const { Button } = XElement;
---
<div class="bg-neutral-50 border-t border-neutral-300">
<nav class="container relative mx-auto justify-start w-full text-neutral-500">
<Button
type="button"
---
import XElement from 'astro-xelement';
import { Debug } from 'astro/components';
const { Div } = XElement;
---
<Div id="map" style="position: absolute; top: 0; bottom: 0; width: 100%;"
@do={(element,store)=>{
import maplibregl from 'maplibre-gl';
import 'maplibre-gl/dist/maplibre-gl.css';