Skip to content

Instantly share code, notes, and snippets.

@fujin
fujin / brew.sh
Last active July 22, 2019 08:38
PrusaSlicer build steps (macOS - 11/06/2019)
#!/usr/bin/env bash
# For `nproc`
brew install coreutils
# this is 2019_U6, but the cmake script doesn't find it - specify TBB_LIBRARIES_RELEASE as an arg to cmake, with `-D`
brew install tbb
# The BOOST_REQUIRED_VERSION in PrusaSlicer is 1.64, but that is quite old,
# and has been removed from the homebrew-core formula repo.
@Tras2
Tras2 / cloudflare-ddns-update.sh
Last active December 26, 2024 01:29
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/bin/bash
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine
# Used to provide DDNS service for my home
# Needs the DNS record pre-creating on Cloudflare
# Proxy - uncomment and provide details if using a proxy
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport>
# Cloudflare zone is the zone which holds the record