Skip to content

Instantly share code, notes, and snippets.

View dariaphoebe's full-sized avatar

Daria Phoebe Brashear dariaphoebe

View GitHub Profile
@dariaphoebe
dariaphoebe / virtualapple-utm-link
Created April 24, 2024 18:34 — forked from akemin-dayo/virtualapple-utm-link
A cleaned up version of an internal script that I've been using while working on TotalFinder to create VirtualApple virtual machine instances that are hardlinked to a UTM virtual machine instance. It's particularly useful for entering One True recoveryOS (1TR) as well as using the other features found only in VirtualApple.
@dariaphoebe
dariaphoebe / defang.md
Created April 24, 2024 18:31 — forked from macshome/defang.md
How to defang system protections on macOS

How to Defang macOS System Protections

If you want to change things on the root drive of a Mac you will need to take some steps to disable the built in security of the system. Most of these steps are the same regardless if you are on Intel or Apple Silicon. If there is a difference it is noted.

Note that all of these things put a Mac into an unsupported and less secure state.

Make sure you either perform these steps in a VM or that you reset the protections after you are done poking around

Protections and Terms

(This list is not exahustive on the details of each. Check the links at the end for more info.)

@dariaphoebe
dariaphoebe / dkms-module-signing.md
Created February 6, 2024 20:43 — forked from dojoe/dkms-module-signing.md
Make DKMS sign kernel modules on installation, with full script support and somewhat distro independent

On systems with UEFI Secure Boot enabled, recent Linux kernels will only load signed modules, so it's about time DKMS grew the capability to sign modules it's building.

These scripts are extended and scriptified variants of https://computerlinguist.org/make-dkms-sign-kernel-modules-for-secure-boot-on-ubuntu-1604.html and https://askubuntu.com/questions/760671/could-not-load-vboxdrv-after-upgrade-to-ubuntu-16-04-and-i-want-to-keep-secur/768310#768310 and add some error checking, a passphrase around your signing key, and support for compressed modules.

dkms-sign-module is a wrapper for the more generic sign-modules which can also be used outside of DKMS.

Installation

  1. Create a directory under /root, say /root/module-signing, put the three scripts below in there and make them executable: chmod u+x one-time-setup sign-modules dkms-sign-module
@dariaphoebe
dariaphoebe / README.md
Created February 1, 2024 12:57 — forked from keiya/README.md
How to broadcast to Icecast2 by using ffmpeg (FLAC,Opus,Vorbis,AAC,MP3/Windows, Mac)

FFMpeg to Icecast2 Streaming Samples

Examples usage of various codecs with FFMpeg.

Samples

  • flac.sh : An Icecast Source Client
    • for Windows (Cygwin is required)
    • and macOS (brew install ffmpeg)
  • another_examples.sh : Samples
  • FFMpeg can push to Icecast2 in various formats: Opus/Vorbis/AAC/MP3
@dariaphoebe
dariaphoebe / ThirdPartyKexts.md
Created October 10, 2023 19:53 — forked from steven-michaud/ThirdPartyKexts.md
Running Third Party Kernel Extensions on Virtualization Framework macOS Guest VMs

Running Third Party Kernel Extensions on Virtualization Framework macOS Guest VMs

As of macOS 12 (Monterey), Apple's Virtualization framework has nice support for macOS guest virtual machines, but with severe limitations: For example you can't install a macOS guest on Intel Macs, install guests with newer versions of macOS than the host, copy and paste between the host and the guest, or install third party kernel extensions in the guest. As usual for Apple, the functionality they do support is nicely implemented, but they've left out so much that the result is only marginally useful -- at least compared to

@dariaphoebe
dariaphoebe / libdispatch-efficiency-tips.md
Created February 8, 2022 17:46 — forked from tclementdev/libdispatch-efficiency-tips.md
Making efficient use of the libdispatch (GCD)

libdispatch efficiency tips

The libdispatch is one of the most misused API due to the way it was presented to us when it was introduced and for many years after that, and due to the confusing documentation and API. This page is a compilation of important things to know if you're going to use this library. Many references are available at the end of this document pointing to comments from Apple's very own libdispatch maintainer (Pierre Habouzit).

My take-aways are:

  • You should create very few, long-lived, well-defined queues. These queues should be seen as execution contexts in your program (gui, background work, ...) that benefit from executing in parallel. An important thing to note is that if these queues are all active at once, you will get as many threads running. In most apps, you probably do not need to create more than 3 or 4 queues.

  • Go serial first, and as you find performance bottle necks, measure why, and if concurrency helps, apply with care, always validating under system pressure. Reuse

Transgender care health insurance mandates survey

I surveyed existing options in Massachusetts and Rhode Island, and then examined those states which have mandates or guidance on transgender health insurance coverage and provisions to gather a collection of that guidance. 22 states and DC currently have guidance.

I'm working from the standpoint of facial feminization surgery, because it's commonly considered cosmetic; It's a convenient basis for comparing coverage.

What I learned is that the Deval Patrick guidance did not specify a list of services, and a number of (small) providers in Massachusetts have a less expansive coverage offering; The difference seems to be that MassHealth's coverage includes the more expansive list of surgical interventions. The comparable Rhode Island program is less extensive, and it may well be that the difference stems from that.

@dariaphoebe
dariaphoebe / key.md
Created April 9, 2019 00:27 — forked from sokcuri/key.md
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@dariaphoebe
dariaphoebe / genesis_public_key
Created February 21, 2018 16:45
genesis_public_key
04f280a07de07b7b1d0f02a8f210ec036396cb11e1bac7728f19b2ac667e255644dd5b9cc0e364a367161497cb984e20df26cd54cb8457f7c8c966cc0f2f1b77d9
@dariaphoebe
dariaphoebe / global.R
Created August 28, 2017 04:12 — forked from andland/global.R
CD102.5 Top Songs by Artist in 2013
library(XML)
library(lubridate)
library(sqldf)
library(reshape2)
library(ggplot2)
library(mgcv)
cat("loading old data...\n")
playlist=read.csv("CD101Playlist.csv",stringsAsFactors=FALSE)
colnames(playlist)[3]="Last Played"