Skip to content

Instantly share code, notes, and snippets.

View NetOpWibby's full-sized avatar
🌿
imagine being mad, touch grass

netop://ウィビ NetOpWibby

🌿
imagine being mad, touch grass
View GitHub Profile
<div style="position:absolute;top:-999px;left:-999px">
<svg
id="effectSvg"
width="200"
height="200"
viewBox="0 0 200 200"
xmlns="http://www.w3.org/2000/svg">
<filter id="displacementFilter4">

Pixel Perfect GIF to MP4 Conversion

problem

Sharing pixel art as animated gifs on social media sucks. Uploading animated gifs will typically get automatically converted to a video format with blurry results. We can manually do the conversion ourselves to get much nicer results.

solution

ffmpeg -i input.gif -movflags faststart -pix_fmt yuv420p -vf scale=1920:1080:flags=neighbor output.mp4
@NetOpWibby
NetOpWibby / jd-sort.sh
Created February 21, 2025 17:40
Johnny Decimal Downloads folder sorter
#!/bin/zsh
# Johnny Decimal Download Sorter
# Usage: ./jd-sort.sh [-d|--dry-run]
# Process command line arguments
DRY_RUN=0
while [[ "$#" -gt 0 ]]; do
case $1 in
@NetOpWibby
NetOpWibby / hls.sh
Created February 17, 2025 08:56 — forked from stenuto/hls.sh
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@NetOpWibby
NetOpWibby / reset.css
Created January 24, 2025 09:14 — forked from EllyLoel/reset.css
CSS Reset
/*
Made by Elly Loel - https://ellyloel.com/
With inspiration from:
- Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/
- Andy Bell - https://piccalil.li/blog/a-modern-css-reset/
- Adam Argyle - https://unpkg.com/[email protected]/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE
Notes:
- `:where()` is used to lower specificity for easy overriding.
*/
@NetOpWibby
NetOpWibby / index.html
Created January 4, 2025 13:54 — forked from oaluna/index.html
Stripe Website Gradient Animation
<html>
<head>
<title>Stripe Gradient</title>
</head>
<body>
<canvas id="gradient-canvas" data-js-darken-top data-transition-in>
<!--
Remove data-js-darken-top to keep the same brightness in the upper part of the canvas
-->
</canvas>
@NetOpWibby
NetOpWibby / mulberry32.c
Created October 18, 2024 16:59 — forked from tommyettinger/mulberry32.c
Mulberry32 PRNG
/* Written in 2017 by Tommy Ettinger ([email protected])
To the extent possible under law, the author has dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
See <http://creativecommons.org/publicdomain/zero/1.0/>. */
#include <stdint.h>
@NetOpWibby
NetOpWibby / sign.ts
Last active October 14, 2024 21:44
Fixes "prime256v1" issue with Apple-supplied private keys (`jsonwebtoken` isn't expecting "p256"). In `sign.ts` I removed all the validation checks and `lodash` crap. I'm using Deno. Oh, and you should extract the `timespan` and `validateAsymmetricKey` functions from `jsonwebtoken`. Maybe I'll do that someday and upload a module to jsr.
/// native
import { Buffer } from "node:buffer";
import { KeyObject, createSecretKey, createPrivateKey } from "node:crypto";
/// import
@NetOpWibby
NetOpWibby / main.rs
Created July 24, 2024 03:28 — forked from samuelint/main.rs
Tauri Sidecar Lifecycle & Forward stderr
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
pub mod sidecar_lifecycle_service;
use std::sync::Mutex;
use tauri_plugin_log::LogTarget;
use tauri::{Manager, State, WindowEvent};
use sidecar_lifecycle_service::SidecarLifeCycleService;
@NetOpWibby
NetOpWibby / potential-bad-domains.txt
Created July 11, 2024 19:03 — forked from 0xngmi/potential-bad-domains.txt
List f domains associated with squarespace at risk of being hacked
List of domains that are registered with squarespace and thus could be vulnerable:
celer.network
pendle.finance
karak.network
compound.finance
hyperliquid.xyz
dydx.exchange
thorchain.com
threshold.network