Skip to content

Instantly share code, notes, and snippets.

@jlmalone
jlmalone / darkmesh.sh
Created June 27, 2025 12:12
darkmesh - a compatibility and network splitting tool for tailscale and other vpns eg ExpressVpn
#!/bin/zsh
#
# =============================================================================
# macOS Split-Tunnel Script for a Full VPN and Tailscale
# =============================================================================
#
# Copyright (c) 2025 Salient Vision Technologies, LLC
# Auhor: jlmalone
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
@jlmalone
jlmalone / find_macs.sh
Created June 17, 2025 22:56
Find Devices on Network with Special emphasis of Macs and Mac Minis on a local network
#!/bin/bash
#
# find_macs.sh - Local Network Mac & Mac Mini Scanner
#
# Author: Joseph Malone / jlmalone
# Date: 2025-06-18
# Version: 1.0
#
# Description:
# This script scans the local network to identify all active devices.
@jlmalone
jlmalone / brief_privacy_policy.md
Last active June 9, 2025 08:16
Brief Wikipedia News App Privacy Policy

Privacy Policy for Brief Wikipedia News

Last updated: June 9 2025

This privacy policy governs your use of the software application "Brief Wikipedia News" ("Application") for mobile devices.

What information does the Application obtain and how is it used?

Non-Personal Information The Application connects to the internet to download publicly available news and event data directly from Wikipedia's servers (en.m.wikipedia.org). This process involves standard network requests which may log technical, non-personally identifiable information such as your IP address on the servers the Application communicates with, as is standard for all internet traffic. We, the developers of Brief Wikipedia News, do not access, store, or process this information.

@jlmalone
jlmalone / mp3_from_flac.sh
Created April 3, 2025 03:00
mp3 from flac script TODO cleanup
#!/bin/bash
# Improved FLAC-to-MP3 conversion script
# Use a safe IFS for filenames with spaces.
IFS=$(printf '\n\t')
BASE_DIR="$HOME/sietch"
# Use find with -print0 to correctly handle file names with spaces/special characters.
find "$BASE_DIR" -type f -iname "*.flac" -print0 | while IFS= read -r -d '' file; do
echo "Processing: \"$file\""
@jlmalone
jlmalone / summarise.sh
Last active May 13, 2025 09:06
Script to summarise codebases, making an effort to strip passwords and keys, so entire codebases, or large sections can be concatenated particularly for upload to LLMs without dealing with multiple files
#!/usr/bin/env bash
# ---------------------------------------------------------------------------------
# summarise.sh
# A bash script that recursively crawls a directory, concatenates text-based code
# files into a single output file, and redacts sensitive info within quoted strings.
#
# Usage:
# ./summarise.sh <target_directory> <output_file> [custom_ignores_file]
#
# Example:
@jlmalone
jlmalone / TextExtract.py
Created April 17, 2024 15:23
Extract the text out of an ePub
# pip install ebooklib beautifulsoup4 python-dotenv
import ebooklib
from dotenv import load_dotenv
import os
from ebooklib import epub
from bs4 import BeautifulSoup
def extract_text_from_epub(file_path):
book = epub.read_epub(file_path)
@jlmalone
jlmalone / whisperpy.py
Last active June 22, 2023 08:54
The script will transcribe the audio and create an SRT file with the same name as the input file (or YouTube video title) in the current directory. The name of the SRT file will be printed as the output.
# Usage
# python3 whisperpy.py [filename_input or youtube url]
# The script will transcribe the audio and create an SRT file with the same name as the input file
# (or YouTube video title) in the current directory. The name of the SRT file will be printed as the output.
import sys
import whisper
import hashlib
from pytube import YouTube

Keybase proof

I hereby claim:

  • I am jlmalone on github.
  • I am jlawrenceiv (https://keybase.io/jlawrenceiv) on keybase.
  • I have a public key ASCAWsoIc8Fgv4vI1mGEAjD6vKBug_pyJ-DlJULrSW9Q8wo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jlmalone on github.
  • I am jlawrenceiv (https://keybase.io/jlawrenceiv) on keybase.
  • I have a public key ASCAWsoIc8Fgv4vI1mGEAjD6vKBug_pyJ-DlJULrSW9Q8wo

To claim this, I am signing this object:

package com.example.retrofit;
import java.lang.annotation.Annotation;
import at.rags.morpheus.Morpheus;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.reflect.TypeToken;
import com.squareup.okhttp.RequestBody;
import com.squareup.okhttp.ResponseBody;