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 / gist:9f9720657b6e70b350f9
Last active August 29, 2015 14:20
minibian-deploy
#!/bin/bash
### Script to do initial configuration of MINIBIAN Raspberry Pi distribution
### https://minibianpi.wordpress.com/ v. 2015-02-18
### inspired by http://www.htpcguides.com/lightweight-raspbian-distro-minibian-initial-setup/
## Initial updates and installs
apt-get update
apt-get install nano sudo rpi-update raspi-config usbutils dosfstools rng-tools -y
@zcshiner
zcshiner / UbuntuMiner
Last active March 11, 2019 11:56
UbuntuMiner. Command list to build an Ubuntu 14.04 Server with Cuda Toolkit 6.5, driver 352.41, and ccminer.
#!/bin/bash
### Command log to install Cuda Toolkit 6.5, driver 343.22, and ccminer.
## Update the system
sudo apt-get update && sudo apt-get -y dist-upgrade
# All the dependencies for Cuda & ccminer (I think)
sudo apt-get -y install gcc g++ build-essential automake linux-headers-$(uname -r) git gawk libcurl4-openssl-dev libjansson-dev xorg libc++-dev libgmp-dev python-dev
@zcshiner
zcshiner / starrccminer-qrk-mrr.sh
Last active August 29, 2015 14:06
Start ccminer
#!/bin/bash
### Startup Script for sp's ccminer fork
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Got that snippet from: http://stackoverflow.com/a/246128
POOLURL="stratum+tcp://us-east01.miningrigrentals.com:3333"
USERNAME="squadbox.14783"
PASSWORD="x"
@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.