Skip to content

Instantly share code, notes, and snippets.

@julianxhokaxhiu
julianxhokaxhiu / create-iso.sh
Last active March 25, 2024 16:15
Simple bash script to create a Bootable ISO from macOS Catalina Install Image from Mac App Store
#!/usr/bin/env bash
#===========================================================================
# Works only with the official image available in the Mac App Store.
# Make sure you download the official installer before running this script.
#===========================================================================
hdiutil create -o /tmp/Catalina.cdr -size 9000m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Catalina.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction
hdiutil detach "/Volumes/Install macOS Catalina"
My Apple devices started stating "incorrect password" for my network, even though they had conncted previously.
So how to fix Unifi network "incorrect password" error on iPhone, iPod, iPad and Macbook pro?
The reason for the error is the WiFi management done on iOS devices.
The default settings for the Unifi AP range are not compatible with iOS 11 and 12 and OSX High Sierra (and maybe more).
The reason for the error is the "DTIM Mode" (beacon timing) setting for power saving.
@erdavis1
erdavis1 / allpubs.csv
Created May 5, 2019 19:03
Pubs of the British Isles
We can't make this file beautiful and searchable because it's too large.
ID,name,long,lat,region
1,'31 Market Place',-1.021284,53.429981,england
1,'The Commercial Hotel',-2.364444,53.752023,england
3,'The Park Inn ',-2.358299,53.747997,england
5,0 degrees North,-0.0309,53.560872,england
6,012 Bar And Grill,0.004034,51.544232,england
7,1 In 12 Club,-1.758029,53.794847,england
8,1 Step Social Limited,-1.633635044,54.81035995,england
9,1 Town Hall Square,-3.4474502,51.4620403,wales
10,100 Acre Catering Ltd,-1.838364,51.063689,england
@jjnilton
jjnilton / mac-network-commands-cheat-sheet.md
Last active April 15, 2024 15:30
Mac Network Commands Cheat Sheet

Disclaimer: I'm not the original author of this sheet, but can't recall where I found it. If you know the author, please let me know so I give the attribution.

The original author seems to be Charles Edge, here's the original content, as pointed out by @percisely.

Note: Since this seems to be helpful to some people, I formatted it to improve readability of the original. Also, note that this is from 2016, many things may have changed, and I don't use macOS anymore, so I probably can't help in case of questions, but maybe someone else can.

Mac Network Commands Cheat Sheet

After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and s

@codeinthehole
codeinthehole / osx_bootstrap.sh
Last active October 10, 2023 12:21
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - Twitter (app store)
@tylerwalts
tylerwalts / setupOSX.sh
Created March 5, 2014 19:56
This is a bash script to setup Mac OS X defaults on a new mac.
#!/bin/bash
#
# Set up OSX preferences
#
# Inspired by: https://github.com/mathiasbynens/dotfiles/blob/master/.osx
###########################################
# CONFIG
HOSTNAME="machiavellia"
TIMEZONE="America/Chicago" # 'systemsetup -listtimezones'
@t-io
t-io / osx_install.sh
Last active October 22, 2023 13:04
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"