Skip to content

Instantly share code, notes, and snippets.

View genevera's full-sized avatar

genevera (she/her) genevera

  • Queens, NY
View GitHub Profile
@genevera
genevera / gifloop.sh
Created February 9, 2024 20:24
giflooop - creates a forward-reverse loop of any animated gif
################################################################################
# creates a fwd-reverse loop of any gif
################################################################################
function gifloop {
local -r original="${1:-UNSET}";
local -r original_254="/tmp/${original/.gif/_254.gif}";
local -r loop_unopt="/tmp/${original/.gif/_loop_unopt.gif}";
local -r output="${original/.gif/_loop.gif}";
if [[ "${orignal}" == "UNSET" ]]; then
@genevera
genevera / trilateration.js
Created September 23, 2024 00:13 — forked from richard-flosi/trilateration.js
JavaScript Trilateration
// Created by Derrick Cohodas (dav-)
// Based on the Python example by StackExchange user wwnick from http://gis.stackexchange.com/a/415/41129
// Requires the Mathjs library - http://mathjs.org/
var math = require('mathjs')
/**
* Represents a coordinate with a distance
* @param {Number} lat Latitude
@genevera
genevera / doingtoomuch.zsh
Created September 10, 2025 04:25
Nice little alias to list out Makefile tasks
#!/usr/bin/env zsh
##################################################################################################
# I actually have this aliased but since I want anyone to be able to use this
# with a minimum of confusion or abject fuckery this is expressed as a one size fits all function
##################################################################################################
function makelist {
# on MacOS with gnu make/sed/grep installed via Homebrew (brew install make sed grep)
if [[ $(uname -s) -eq "Darwin" ]] && { command -v ggrep && command -v gmake && command -v gsed } > /dev/null;
@genevera
genevera / test.sh
Created December 9, 2025 00:29 — forked from xy3/test.sh
mdm bypass
#!/bin/bash
# Global constants
readonly DEFAULT_SYSTEM_VOLUME="Macintosh"
readonly DEFAULT_DATA_VOLUME="Macintosh - Data"
# Text formating
RED='\033[1;31m'
GREEN='\033[1;32m'
BLUE='\033[1;34m'