Skip to content

Instantly share code, notes, and snippets.

@appendjeff
appendjeff / main.js
Created August 27, 2025 01:27
Mark As Read Obsidian Plugin
// main.js - Save this in a new folder in your .obsidian/plugins directory
// Also, save a manifest file next to the plugin
const { Plugin } = require('obsidian');
class MarkAsReadPlugin extends Plugin {
async onload() {
console.log('Loading Mark as Read plugin');
// Add command to mark note as read
this.addCommand({
@appendjeff
appendjeff / nested_links.ts
Created August 14, 2025 05:30
Obsidian x dataview script to display one layer of nested backlinks
@appendjeff
appendjeff / obsidian_tagger.sh
Created July 19, 2025 03:24
Batch apply tags to obsidian files under a folder.
#!/bin/bash
# ./obsidian_tagger.sh -t example-tag /path/to/your/obsidian/folder/
# ./obsidian_tagger.sh /path/to/your/obsidian/folder
# Configuration
TAG_TO_ADD="backpack"
BACKUP_SUFFIX=".backup"
@appendjeff
appendjeff / Evergoods CPL 24.md
Created June 18, 2025 04:24
Evergoods CPL 24

type: Backpack (EDC) brand: Evergoods model: CPL volume: 24L weight: 2.9 height: 18 width: 11.5 depth: 7 color: Black

jeffmandell@TpT-JeffMandell helm % helm search postgresql --versions | grep "11."
NAME CHART VERSION APP VERSION DESCRIPTION
bitnami/postgresql 11.9.13 14.5.0 PostgreSQL (Postgres) is an open source object-relational...
bitnami/postgresql 11.9.12 14.5.0 PostgreSQL (Postgres) is an open source object-relational...
bitnami/postgresql 11.9.11 14.5.0 PostgreSQL (Postgres) is an open source object-relational...
bitnami/postgresql 11.9.10 14.5.0 PostgreSQL (Postgres) is an open source object-relational...
bitnami/postgresql 11.9.9 14.5.0 PostgreSQL (Postgres) is an open source object-relational...
bitnami/postgresql 11.9.8 14.5.0 PostgreSQL (Postgres) is an open source object-relational...
bitnami/postgresql 11.9.7 14.5.0 PostgreSQL (Postgres) is an open source object-relational...
bitnami
#!/usr/bin/env python
from subprocess import Popen, PIPE
import time
import RPiGPIO as GPIO
MY_VIDEO_FILE_PATH = '/home/video_name.mp4'
my_process = Popen(['omxplayer', MY_VIDEO_FILE_PATH], stdin=PIPE, close_fds=True, bufsize=0)
import requests
from bs4 import BeautifulSoup as BS
def get_puppy_ids():
puppy_ids = []
url = 'https://www.puppyspot.com/puppies/all_puppies/'
headers = {
'set-cookie': 'AWSALB=0BxiczxoEuCoEq2Z1M+8B0cUp/jUMj8LnRXmNUc6aOqGB5Hbh8rtdVnuJRdQsuJjVBAmooGEiPtsmoh7y7SldkCa1WfDVflgMkRnaIwp9jFdDqjKzOrqooyd/WGt; Expires=Thu, 06 Apr 2017 03:37:04 GMT; Path=/',
'cf-ray': '3478073bed65213e-EWR'
}
from random import sample, choice
from collections import namedtuple
def build_set(X):
"""Given a list of elements, returns a random set of such elements."""
return set(sample(X, choice(X)))
def build_sets(n, x):
@appendjeff
appendjeff / docker-open
Last active December 14, 2016 22:25
search command to replace the `docker exec -it $container_name /bin/bash` pattern
#!/bin/sh
if [ -z "$1" ]
then
echo 'usage: docker-open $container_name_substring'
echo ''
echo 'Open up bash container given substring found in docker ps'
echo 'Since it greps all of docker ps, you can do:'
echo ' docker-open 801[0-9]'
echo 'and it will give you a menu to jump into one of the containers that is running on port 8010-8019'
@appendjeff
appendjeff / match_date.py
Created December 12, 2016 03:37
Comparing java to python for education!
import re
class MatchDate(object):
"""A date object matched from a syllabus."""
day = 0
month = 0
year = 0
value_words = ["exam","project","assignment","homework","presentation"]