Skip to content

Instantly share code, notes, and snippets.

use std::fmt::Display;
use rand::prelude::*;
const DIM: usize = 100;
type V = [f64; DIM];
struct ObjectiveFunctionStruct {
name: String,
function: fn(&V) -> f64,
@masklinn
masklinn / cheatsheet.md
Last active March 18, 2024 14:22
launchctl/launchd cheat sheet

I've never had great understanding of launchctl but the deprecation of the old commands with launchctl 2 (10.10) has been terrible as all resources only cover the old commands, and documentation for Apple utilities is generally disgracefully bad, with launchctl not dissembling.

Mad props to https://babodee.wordpress.com/2016/04/09/launchctl-2-0-syntax/ which contains most details

domains

Internally, launchd has several domains, but launchctl 1 would only ask for service names,