Skip to content

Instantly share code, notes, and snippets.

@leecannon
leecannon / untick-usermacro.js
Last active June 17, 2023 10:01
Confluence user macro to un-tick all tasks on the page - No Macro Body
## @noparams
<script type="text/javascript">
function untick() {
var base_url = window.location.protocol + "//" + window.location.host;
var tasklist_id = document.getElementsByClassName("inline-task-list")[0].dataset.inlineTasksContentId;
var boxes = document.getElementsByClassName("checked");
var number_of_boxes = boxes.length;
if (number_of_boxes == 0) return;

Enable macOS Server Performance Mode

Performance mode changes the system parameters of your Mac. These changes take better advantage of your hardware for demanding server applications.

A Mac with macOS Server that needs to run high-performance services can turn on performance mode to dedicate additional system resources for server applications. Note, however, that performance mode can be enabled even without macOS Server being installed to achieve similar benifits for other high-performance services.

sudo nvram boot-args="serverperfmode=1 $(nvram boot-args 2>/dev/null | cut -f 2-)"
sudo reboot

Reference: https://support.apple.com/en-us/HT202528.