Skip to content

Instantly share code, notes, and snippets.

@eddy-22
eddy-22 / public_apis.md
Created August 24, 2025 21:34
Free, public APIs organized by category.

Try Public APIs for free

The Public APIs repository is manually curated by community members like you and folks working at APILayer. It includes an extensive list of public APIs from many domains that you can use for your own products. Consider it a treasure trove of APIs well-managed by the community over the years.


APILayer Logo
@eddy-22
eddy-22 / cat_facts.json
Created July 6, 2025 01:45
Animal Facts (cats and dogs to start, more coming soon)
[
"Every year, nearly four million cats are eaten in Asia",
"On average, cats spend 2/3 of every day sleeping",
"Unlike dogs, cats do not have a sweet tooth",
"When a cat chases its prey, it keeps its head level",
"The technical term for a cat's hairball is a bezoar",
"A group of cats is called a clowder",
"Female cats tend to be right pawed, while male cats are more often left pawed",
"A cat cannot climb head first down a tree because its claws are curved the wrong way",
"Cats make about 100 different sounds",
@eddy-22
eddy-22 / README.md
Created June 27, 2025 21:36
Collection of links to publicly available self hosted services and alternative frontends

Awesome Instances

Directory of links to public insteances of self-hosted services and alternative frontends.

LAST UPDATED: 2025/06/27

Coming soon...

@eddy-22
eddy-22 / README.md
Last active May 31, 2025 02:07
Cheat sheets of ranging topics
@eddy-22
eddy-22 / cecho.sh
Created May 24, 2025 00:53
Colorized echo command
#!/bin/sh
# source me in your script or .bashrc/.zshrc if wanna use cecho
# source '/path/to/cecho.sh'
# check this var to detect "cecho" being imported
CECHO_IS_IMPORTED=1
cecho()
{
@eddy-22
eddy-22 / tempmail.sh
Created December 6, 2024 21:46 — forked from xpepper/tempmail.sh
A shell script to create a temporary disposable email via command line (install w3m, curl, jq)
#!/usr/bin/env sh
#
# by Siddharth Dushantha 2020
#
# Dependencies: jq, curl, w3m
#
version=1.1.9
# By default 'tmpmail' uses 'w3m' as it's web browser to render
@eddy-22
eddy-22 / optparsing_demo.zsh
Created November 11, 2024 22:00
ZSH option parsing
# Manual opt parsing example
#
# Features:
# - supports short and long flags (ie: -v|--verbose)
# - supports short and long key/value options (ie: -f <file> | --filename <file>)
# - supports short and long key/value options with equals assignment (ie: -f=<file> | --filename=<file>)
# - does NOT support short option chaining (ie: -vh)
# - everything after -- is positional even if it looks like an option (ie: -f)
# - once we hit an arg that isn't an option flag, everything after that is considered positional
function optparsing_demo() {
@eddy-22
eddy-22 / select.sh
Created September 26, 2023 07:57
Bash Prompt for multiselect
#/bin/bash
# from SO: https://stackoverflow.com/a/54261882/317605 (by https://stackoverflow.com/users/8207842/dols3m)
function prompt_for_multiselect {
# little helpers for terminal print control and key input
ESC=$( printf "\033")
cursor_blink_on() { printf "$ESC[?25h"; }
cursor_blink_off() { printf "$ESC[?25l"; }
cursor_to() { printf "$ESC[$1;${2:-1}H"; }
print_inactive() { printf "$2 $1 "; }
@eddy-22
eddy-22 / example.zsh
Last active August 3, 2023 15:11 — forked from mattmc3/optparsing_demo.zsh
Zsh option parsing example
function yy() {
zmodload zsh/zutil
function breakout() { echo -e "$1" && exit 1}
local flag_url
local output="./%(artist)s/%(title)s.%(ext)s"
local flag_song
local flag_format='bestaudio[ext=m4a]'