Skip to content

Instantly share code, notes, and snippets.

@launchdaemon
launchdaemon / sip_config.py
Created July 25, 2023 15:09 — forked from pudquick/sip_config.py
Querying active SIP status directly from the kernel, bypassing nvram and csrutil, via python on macOS
# An overly complicated SIP config checker
# This is a technically interesting implementation because it does not rely on csrutil
# Instead it queries the kernel directly for the current configuration status
# This means, for example, in environments where SIP has been disabled and csrutil has
# been removed or modified (say, with DYLD_LIBRARY_PATH), as long as python can run you
# can still check status
# Additionally, checking the nvram csr-active-config setting isn't accurate now with
# 10.12.2+, since running "sudo csrutil clear" deletes the variable until reboot,
@launchdaemon
launchdaemon / gist:589e447d80d9fd66f13c0ffb3343fa75
Created March 7, 2019 13:34
Configuring Freeradius Daloradius on a Raspberry Pi
Braindump of commands and notes setting up freeradius on a Raspberry Pi as tutorials I found were outdated, mostly taken from here:
http://www.binaryheartbeat.net/2013/12/raspberry-pi-based-freeradius-server.html
sudo apt-get install freeradius freeradius-mysql apache2 php libapache2-mod-php mysql-server mysql-client php-mysql php-pear php-gd php-db
sudo mysqladmin -u root password NEWPASSWORD - if not prompted for password during setup
sudo wget https://sourceforge.net/projects/daloradius/files/latest/download
sudo mv download daloradius-0.9-9.tar.gz
sudo tar zxvf daloradius-0.9-9.tar.gz -C /var/www/
sudo mv /var/www/daloradius-0.9-9/ /var/www/html/daloradius/