Skip to content

Instantly share code, notes, and snippets.

Alo Press AloPress

View GitHub Profile
View fix-opendirectory.md

Fixing the Open Directory via macOS terminal.

sudo launchctl unload /System/Library/LaunchDaemons/org.openldap.slapd.plist
sudo /usr/libexec/slapd -Tt
sudo db_recover -cv -h /var/db/openldap/openldap-data/
sudo db_recover -cv -h /var/db/openldap/authdata/
sudo /usr/libexec/slapd -Tt
sudo launchctl load /System/Library/LaunchDaemons/org.openldap.slapd.plist

If this sequence of commands doesn’t fix it, then you will need to restore the LDAP databases from backup, which can generally be done with the following command:

@AloPress
AloPress / Zabbix-install
Last active Apr 10, 2019
Installing Zabbix Agent 4.0.1 from source on macOS Mojave with the addition of PCRE 8.42 and libiconv 1.15
View Zabbix-install
# Install macOS Command Line Tools
$ xcode-select --install
# Agent log folder and log files
$ sudo mkdir -p /var/run/zabbix
$ sudo mkdir -p /var/log/zabbix
$ sudo touch /var/run/zabbix/zabbix_agentd.pid
$ sudo touch /var/log/zabbix/zabbix_agentd.log
@AloPress
AloPress / cfgutil
Last active Apr 10, 2019
Command-line iOS device management, cfgutil performs various management tasks on one or more attached iOS devices. It can be used manually and as part of automated workflows. Source: https://configautomation.com/cfgutil-man-page.html
View cfgutil
CFGUTIL(1) BSD General Commands Manual CFGUTIL(1)
NAME
cfgutil -- Command-line iOS device management
SYNOPSIS
cfgutil [-C ] [-K ]
[-e | -f | --foreach]
[--format JSON | plist | text] [-v] command [ ...]
View PSAppDeployToolkit_Estonian_Localization.xml
<!-- UI Messages - Estonian -->
<UI_Messages_ET>
<DiskSpace_Message>Kettal on liiga vähe ruumi, et paigaldada:
{0}
Nõutud ruum: {1}MB
Saadaval ruum: {2}MB
Paigalduse jätkumiseks vabastage palun kettaruumi.</DiskSpace_Message>
<ClosePrompt_ButtonContinue>Jätka</ClosePrompt_ButtonContinue>
@AloPress
AloPress / iOS Support Matrix Text (Estonian)
Last active Jan 13, 2019 — forked from rjstelling/iOS Support Matrix Text (english)
This is the text that needs translating so we can release localised versions of the iOS Support Matrix. Feel free to fork and translate: http://www.empiricalmagic.com/post/34832825209/ios-support-matrix-v2-0-winter-2012
View iOS Support Matrix Text (Estonian)
iOS Toe Maatriks (Estonian)
Talv 2012 Väljaanne - v2.0
iPhone Juuni 2007
iPod touch Sept 2007, Veebr 2008 (32GB only)
iPhone 3G Juuli 2008
iPod touch (2. Põlvkond) Sept 2008 Sept 2009 - (Ainult 8GB)
iPhone 3GS Juuni 2009
iPod touch (3. Põlvkond) Sept 2009
iPad Aprill 2010
iPhone 4 Juuni 2010
View gist:703c2df3b2bdf3a950da903a7c56a5b9

macOS Basic pfctl Cheatsheet

Related: http://www.OpenBSD.org Last update: Tue Dec 28, 2004 Note:this document is only provided as a basic overview for some common pfctl commands and is by no means a replacement for the pfctl and pf manual pages.

General PFCTL Commands
pfctl -d disable packet-filtering
pfctl -e enable packet-filtering
pfctl -q run quiet
You can’t perform that action at this time.