Skip to content

Instantly share code, notes, and snippets.

Configure Valet+ to NOT require a password for sudo

echo "%admin ALL = NOPASSWD: /usr/local/bin/valet" | sudo tee /etc/sudoers.d/valet-nopasswd

Enable macOS Server Performance Mode

For more details see this page.

sudo nvram boot-args="serverperfmode=1 $(nvram boot-args 2>/dev/null | cut -f 2-)"
sudo reboot
@dkorpar
dkorpar / maintenance.html
Last active October 31, 2017 11:03 — forked from pitch-gist/gist:2999707
Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
html, body { width:100%; height:100%; }
h1 { font-size: 42px; line-height: 1; }
body { box-sizing: border-box; font: 20px Helvetica, sans-serif; color: #333; padding: 30px; }
article { display: block; text-align: left; margin: 0 auto; max-width: 650px; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }