Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable
@372046933
372046933 / create_user.sh
Last active September 4, 2023 13:36 — forked from mrioan/create_user.sh
Script to create users in an Asus router (OpenWRT) to login via SSH for instance
#!/bin/sh
echo -e "\nUsage: create_user.sh <username> <password>"
USERNAME=$1
PASSWORD=$2
echo "Creating user ${USERNAME}"
if [ ! -d "/home/${USERNAME}" ]
then
echo "Directory /home/${USERNAME} does not exist. Let's continue normally."
mkdir /home/${USERNAME}