Skip to content

Instantly share code, notes, and snippets.

View espeon's full-sized avatar
:octocat:
octo cat

natalie espeon

:octocat:
octo cat
View GitHub Profile
{
"version": 8,
"metadata": {"maputnik:renderer": "mbgljs"},
"sources": {
"ne2_shaded": {
"maxzoom": 6,
"tileSize": 256,
"tiles": [
"https://tiles.openfreemap.org/natural_earth/ne2sr/{z}/{x}/{y}.png"
],
{
"version": 8,
"name": "OSM Liberty",
"metadata": {
"maputnik:license": "https://github.com/maputnik/osm-liberty/blob/gh-pages/LICENSE.md",
"maputnik:renderer": "mbgljs",
"openmaptiles:version": "3.x"
},
"sources": {
"openmaptiles": {
@espeon
espeon / orchid.json
Created January 8, 2025 22:34
orchid waybar config
// Orchid by uxieq.
// Requires https://github.com/sicista33/waybar-scrolling-mpris.
// Intended to be used in https://github.com/JaKooLit/Hyprland-Dots.
{
"include": [
"$HOME/.config/waybar/Modules",
"$HOME/.config/waybar/ModulesWorkspaces",
"$HOME/.config/waybar/ModulesCustom",
@espeon
espeon / pokemonMessages.ts
Last active October 29, 2024 20:03
300+ Pokémon themed test messages, courtesy of Gemini.
interface CharacterMessage {
message: string;
user: string;
}
export default [
{ message: "Pikachu, use Thunderbolt!", user: "ash_k" },
{ message: "I need more potions before the next battle.", user: "brock_b" },
{ message: "Look at all the Magikarp flopping around!", user: "misty_w" },
{ message: "I just caught a rare Gyarados!", user: "ash_k" },
@espeon
espeon / mkcmaf.sh
Last active October 5, 2025 01:48
Generate a CMAF streamable HLS/DASH manifest from any audio file. Will need FFmpeg and Bento4 in your PATH. You can get binaries here: https://ffmpeg.org https://www.bento4.com/
#!/bin/bash
# Generate a CMAF streamable HLS/DASH manifest from any audio file.
# You will need FFmpeg and Bento4 in your PATH.
# Get binaries here: https://ffmpeg.org https://www.bento4.com/
# array of kbps to transcode to opus to mp4
# use below as a 'magic number' to use FLAC instead of Opus
magic_number=1000
@espeon
espeon / ticker.tsx
Last active September 5, 2024 00:05
react ticker with twcss animations - based off https://github.com/TuckerMassad/react-animated-counter
import React, {
memo,
useEffect,
useCallback,
useRef,
useState,
CSSProperties,
} from "react";
export interface AnimatedCounterProps {
@espeon
espeon / scrollingText.tsx
Last active September 3, 2024 19:32
Component that scrolls text if text boundaries are larger than the width of the container
import clsx from "clsx";
import React, { CSSProperties, useEffect, useRef, useState } from "react";
interface ScrollingTextProps {
/// Any other class names you need to put inside this component
className?: string;
/// The text (or component) to put inside. It should be inline.
text?: React.ReactNode;
/// Width on either side to fade in px, if the text wraps around
fadeWidth?: number;
@espeon
espeon / ffupdate.sh
Last active August 29, 2024 18:10
Little ffmpeg update script
#!/bin/bash
# Variables
BASE_URL="https://johnvansickle.com/ffmpeg/builds"
# 'git' or 'release'
FF_VERSION="git"
# See John's website for supported arches: https://johnvansickle.com/ffmpeg/
FF_ARCH='amd64'
DOWNLOAD_DIR="$HOME/ffmpeg"
FFMPEG_ARCHIVE="ffmpeg-$FF_VERSION-$FF_ARCH-static.tar.xz"
@espeon
espeon / revMonRes.ps1
Last active September 25, 2024 16:53
set and reverse monitor resolution, invoke via `powershell.exe -executionpolicy bypass -windowstyle hidden -file "C:\Your\ScriptHere.ps1"`
$content = Get-Content -Path "$env:APPDATA\sunshineres-resolution.txt";
$height = ($content | Select-String 'h:').ToString() -replace '\D+', '';
$width = ($content | Select-String 'w:').ToString() -replace '\D+', '';
$fps = ($content | Select-String 'f:').ToString() -replace '\D+', '';
# for debug
echo "qres /x:$width /y:$height /r:$fps" | Out-File -FilePath "$env:APPDATA\sunshineres-latest-rev-dbg.txt";
qres /x:$width /y:$height /r:$fps
 .-/+oossssoo+\-.
`:+ssssssssssssssssss+:`
-+ssssssssssssssssssyyssss+-
.ossssssssssssssssssdMMMNysssso.
/ssssssssssshdmmNNmmyNMMMMhssssss\
+ssssssssshmydMMMMMMMNddddyssssssss+
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss\
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
+sssshhhyNMMNyssssssssssssyNMMMysssssss+
ossyNMMMNyMMhsssssssssssssshmmmhssssssso