Just some tips I gathered over time. All in one easily reachable place so I can share it wherever I want.
Some of it is just for me to copy and paste from :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import sys | |
| import time | |
| import math | |
| import pickle | |
| from contextlib import nullcontext | |
| from pathlib import Path | |
| import subprocess | |
| from dataclasses import dataclass | |
| import inspect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Project Policy | |
| This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices. | |
| # 1. Introduction | |
| > Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities. | |
| ## 1.1 Actors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| fix_mosh_server() { | |
| local fw='/usr/libexec/ApplicationFirewall/socketfilterfw' | |
| local mosh_sym="$(which mosh-server)" | |
| local mosh_abs="$(readlink -f $mosh_sym)" | |
| sudo "$fw" --setglobalstate off | |
| sudo "$fw" --add "$mosh_sym" | |
| sudo "$fw" --unblockapp "$mosh_sym" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #set -euo pipefail | |
| #IFS=$'\n\t' | |
| # https://stream.lib.utah.edu/index.php?c=browse&m=results&q=Mac+Admins&sort=newest | |
| # https://macos-defaults.com/ | |
| # https://ss64.com/mac/defaults.html | |
| # https://real-world-systems.com/docs/defaults.1.html | |
| # | |
| # https://babodee.wordpress.com/2016/04/09/launchctl-2-0-syntax/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2004 Sam Hocevar <[email protected]> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
ℹ️ Enable iCloud end-to-end encryption:
- Nobody knows that, but iCloud actually supports end-to-end encryption (see “Advanced Data Protection for iCloud”) but it’s disabled by default. If you care about data privacy, you should turn it on.
System settings→Apple ID→iCloud→ SetAdvanced Data ProtectiontoOn.System settings→Apple ID→iCloud→ DisableAccess iCloud Data on the Web.
- It supports almost all the native Apple apps, with the notable exceptions of iCloud Mail, Contacts, and Calendars. See official data protection matrix for more info.
The assumption here is that you're now starting with a Ubuntu 22.04 LTS Server or newer, rather than Desktop, base (Ubuntu Desktop deploys NetworkManager rather than systemd-networkd by default). This box has an AMD Ryzen CPU.
The goal is networking configured for static addressing using systemd-networkd and netplan. Note that punctuation (including hypens, '-') and indentation are significant when working with netplan YAML files.
There are a lot good arguments against using netplan. I have tried NetworkManager (packages named "network-manager", but the service is "NetworkManager.service" -- go figure) on Ubuntu Server, and was
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;; | |
| ;;; Blog post at http://wp.me/p12FcK-3 | |
| ;;; | |
| ;;; Loom: http://github.com/jkk/loom | |
| ;;; GraphViz: http://graphviz.org | |
| ;;; Ubigraph: http://ubietylab.net/ubigraph/ | |
| ;;; | |
| (ns user | |
| (:use [clojure.string :only [lower-case split-lines join]] |