Skip to content

Instantly share code, notes, and snippets.

@zcshiner
zcshiner / mountAPFSreadOnly.sh
Created January 1, 2024 21:24
Mount APFS volumes as read only
#!/bin/bash
# Usage
# mountAPFSreadOnly device
# Example
# mountAPFSreadOnly /dev/disk8s1
# inspiration via: https://forums.macrumors.com/threads/how-to-mount-an-external-drive-apfs-as-read-only.2241919/post-28578009
@zcshiner
zcshiner / BFGminer-GS-build.sh
Last active March 6, 2020 17:34
BFGminer build script for GekkoScience Compac BM1384 Stickminer
#!/bin/bash
BUILD_DIR="bfgminer"
git clone --depth 1 https://github.com/luke-jr/bfgminer $BUILD_DIR
git submodule init && git submodule update --depth 1
cd $BUILD_DIR
make distclean
@zcshiner
zcshiner / preseed.cfg
Created September 1, 2014 17:03
Ubuntu 14.04 - NetworkConsole Install Preseed
### Ubuntu 14.04 NetworkConsole preseed.cfg
# Based off Debian Jessie's example preseed: http://d-i.debian.org/manual/example-preseed.txt
# Accessed: 1 Sept 2014
#### Contents of the preconfiguration file (for jessie)
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
# Keyboard selection.