Skip to content

Instantly share code, notes, and snippets.

@neuralnexus
neuralnexus / gist:6e5e310b06650c32521bee74dd3d779f
Last active March 11, 2024 07:56
Preferred Git Config Tweaks
## List of Matt's preferred git config tweaks
## Updated 03-24
# automatically create remote branch without bothering me
git config --global push.autosetupremote true
# prevent annoying merge commits from happening, only allow pull if it won't make one. Otherwise, fails for you to fix it.
git config --global pull.ff only
# gives more context on merge conflicts, is good!
#! /bin/bash
## this adds a new systemd service to linux systems for certbot autorenewals
## you can just copy/pasta to a shell below this line and it should work fine on most systems/systemd versions. Requires certbot setup previously and sudo.
sudo tee /etc/systemd/system/certbot-renewal.service << EOF
[Unit]
Description=LetsEncrypt certificate renewal using certbot
After=network.target
[Service]
There are no changes vs the Sierra recomendations at this time.
<Stub. Text will go here>
<Stub. Text will go here...>
@neuralnexus
neuralnexus / SierraNetworkingOptimizations.txt
Last active May 2, 2025 18:16
Optimal Settings for High Performance Networking (10/40+ gbE) on Mac OSX 10.12 Sierra
# Settings and Network Buffer Allocations for 10 or 40 gbE networks on Mac OS Sierra 10.12
# Questions? Feel free to email me: ghg-networking@mattivan.com.
----------------------------------------------------------------------------------------------------------------------------
# Step 1: Turn on server mode and adjust network memory buffers.
# You need to drop into a real darwin terminal to do this. Reboot your mac and hold CMD+R to enter recovery mode.
# Open a terminal. Type the following:
nvram boot-args="serverperfmode=1 ncl=262144 $(nvram boot-args 2>/dev/null | cut -f 2-)"