Skip to content

Instantly share code, notes, and snippets.

@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;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Matrix;
import android.os.Build;
import android.util.AttributeSet;
import android.widget.ImageView;
public class ImageViewTopCrop extends ImageView
{
@jlmalone
jlmalone / legibility.xml
Last active August 31, 2016 07:01
Legibility Java Code Style - for Android Studio or Intellij
<code_scheme name="Legibility">
<option name="OTHER_INDENT_OPTIONS">
<value>
<option name="INDENT_SIZE" value="4" />
<option name="CONTINUATION_INDENT_SIZE" value="8" />
<option name="TAB_SIZE" value="4" />
<option name="USE_TAB_CHARACTER" value="true" />
<option name="SMART_TABS" value="true" />
<option name="LABEL_INDENT_SIZE" value="0" />
<option name="LABEL_INDENT_ABSOLUTE" value="false" />