Skip to content

Instantly share code, notes, and snippets.

View Redhawk18's full-sized avatar

Redhawk Redhawk18

  • 17:18 (UTC -04:00)
View GitHub Profile
@Redhawk18
Redhawk18 / README.md
Last active May 28, 2024 01:02
xmrig on macos using Launchd

Here's a guide on how I setup xmrig to run as a Launchd daemon. Refer to here for more infomation

  1. Build and launch xmrig where ever you want and change the WorkingDirectory key to where you built xmrig.

  2. After testing it move your plist file into /Library/LaunchDaemons.

  3. Disable sleep sudo pmset -a disablesleep 1

If you're thankful send a tip to my XMR wallet: 45ynyPQi18vNFvoDGvoT6W6RyrdeahPurVvpxajc4d116fz4jWsqzFD2HkDFMoVp4Zeqvi17kRZt9Lna8Lt8xeZdShzLnkW

@Redhawk18
Redhawk18 / Makefile
Created December 31, 2023 07:51
makefile
CC=g++
CFLAGS=-g -pedantic -Wall -Wextra -Wshadow -Wsign-conversion -std=c++20 -O2
NAME=scitec_takehome
SRC=src
BUILD_DIR=build
INSTALL_DIR=~/.local/bin
BIN=$(BUILD_DIR)/$(NAME)
SRCS=$(wildcard $(SRC)/*.cpp)