Some notes on accessing / exporting Apple's Reminders data on macOS.
As with a lot of organisations, the idea of using LLM's is a reasonably frightning concept, as people freely hand over internal IP and sensitive comms to remote entities that are heavily data bound by nature. I know it was on our minds when deciding on LLM's and their role within the team and wider company. 6 months ago, I set out to explore what offerings were like in the self-hosted and/or OSS space, and if anything could be achieved locally. After using this setup since then, and after getting a lot of questions on it, I thought I might share some of the things I've come across and getting it all setup.
Que in Ollama and Continue. Ollama is an easy way to locally download, manage and run models. Its very familiar to Docker in its usuage, and can probably be most conceptually aligned with it in how it operates, think imag
<?php | |
/** | |
* Class FacadePHPDocs | |
* | |
* @author Ardhana <[email protected]> | |
*/ | |
class FacadePHPDocs{ | |
/** | |
* @var ReflectionClass |
// This script will remove all videos from watch later list | |
// | |
// Usage | |
// | |
// #1 go to https://www.youtube.com/playlist?list=WL | |
// #2 run following script in your browser console | |
// adjust REMOVE_BUTTON_TEXT accordingly to your language, see examples below | |
(async function() { | |
const REMOVE_BUTTON_TEXT = 'Remove from Watch later' |
Out of the box, my SMB performance on macOS 12.3.1 would top out at around 20MB/s in short ~5 second bursts, which was absolutely horrendous, slow to navigate in Finder and slugish to interact with.
Since making these changes, I now get sustained ~80-100MB/s+ and instant Finder navigation which is superb and how things should be out-of-the-box (OOTB)!
May 2023 update: As of Ventura, the SMB issues were just horribly inconsistent and hard to maintain. Something in the combination of Unraid, macOS and SMB just doesn't play nice. I ended up binning NFS/SMB all together and heading to a locally hosted Nextcloud instance for file syncing, then using SFTP/Ansible Git flow for editing files within appdata
.
// | |
// App.swift | |
// | |
// Created by Ben Tindall on 30/03/2022. | |
// | |
import Foundation | |
import SwiftUI | |
import Cocoa |
#!/bin/sh | |
set -e | |
# Usage: | |
# $ https://gist.githubusercontent.com/othyn/87765439d6fa8bdbb193c50935a3b4e1/raw/02a7e9f0e957b286965f88637fac0b6b2b5f7b30/setup_rancher_node.sh | sh | |
# Designed for: | |
# - Ubuntu 20.04.4 | |
# - Rancher v2.4.17 | |
# - Docker 20.10 |
for ID in `docker ps -q`; do | |
NAME=$(docker inspect -f '{{.Config.Image}}' "${ID}") | |
MAC=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.MacAddress}}{{end}}' "${ID}") | |
echo "${ID} :: ${MAC} :: ${NAME}"; | |
done |
I'm creating this as reference for people looking to run Unraid on a Mac mini, as there really isn't any info about this online. In this case, I'm running an MD388LL/A model (6,2), an Intel based model running an Intel i7-3615QM @ 2.3GHz with 16GB DDR3 1600MHz memory. In terms of drives, I'm currently running the original 120GB Apple re-badged SSD and 1TB Apple re-badged HDD which are both near EoL.
For the USB drive I'm using an old spare USB 2.0 Kingston 32GB DataTraveler 104. Space wise, its completely overkill, but I don't have any other spares to hand given my others have been used up on two other Unraid boxes. As for USB 2.0, I've had more success on 2.0 drives than 3+.
p.s. I know there is no installation step, just trying to get good SEO for this post to help wanderers!
# This script is designed to be a 'one-liner', just remove the comments to paste and go! | |
# However feel free to add a shebang and use it as a script, swapping the glob out for a cheeky $1. | |
# [Example usage] | |
# Given: | |
# A file I want to place into a directory of its own name... | |
# ./John Wick.mp4 | |
# --- | |
# Then: | |
# This script will create the required directory and move the file into it... |