Skip to content

Instantly share code, notes, and snippets.

@Lotusshaney
Lotusshaney / haproxy.cfg
Created April 5, 2020 11:09 — forked from urodoz/haproxy.cfg
Multiple SSL certificates in HAProxy configuration
global
maxconn 2048
defaults
mode http
timeout connect 5000ms
timeout client 90000ms
timeout server 90000ms
frontend secure-http-in
@Lotusshaney
Lotusshaney / kextidentifiers.py
Created December 12, 2019 21:34 — forked from erikng/kextidentifiers.py
kextidentifiers.py
#!/usr/bin/python
# For mojave only
# In order for this to work, you will need to go to System Preferences in Mojave -> Security & Privacy -> Privacy -> Full Disk Access and grant Terminal.app permissions
import sqlite3
conn = sqlite3.connect('/var/db/SystemPolicyConfiguration/KextPolicy')
c = conn.cursor()
query = 'SELECT * FROM kext_policy'
c.execute(query)
@Lotusshaney
Lotusshaney / Manage App Notifications.bash
Created October 10, 2019 10:41 — forked from talkingmoose/Manage App Notifications.bash
Similar to User Approved Kernel Extensions (UAKEL) and Privacy Preferences Policy Control (PPPC) in earlier macOS versions, Catalina will now prompt users to allow Notifications from each app. Administrators can manage these prompts using a Configuration Profile. These profiles do not require User Approved MDM.
#!/bin/bash
<<ABOUT_THIS_SCRIPT
-----------------------------------------------------------------------
Written by:William Smith
Professional Services Engineer
Jamf
bill@talkingmoose.net
https://gist.github.com/talkingmoose/9faf50deaaefafa9a147e48ba39bb4b0
@Lotusshaney
Lotusshaney / fancy_defaults_read.py
Created April 16, 2019 11:10 — forked from gregneagle/fancy_defaults_read.py
fancy_defaults_read.py: Reads a preference, prints its value, type, and where it is defined.
#!/usr/bin/python
import os
import sys
from CoreFoundation import (CFPreferencesAppValueIsForced,
CFPreferencesCopyAppValue,
CFPreferencesCopyValue,
kCFPreferencesAnyUser,
kCFPreferencesAnyHost,
@Lotusshaney
Lotusshaney / gist:4048c4339e7e99d5461357729979ad61
Created February 17, 2019 11:58 — forked from tinogomes/gist:771704
Backing Up Your Wii Game Overview with MAC OS X
Extracted from http://chris-fletcher.com/2009/05/17/backup-and-burn-wii-games-on-a-mac/
1. Insert the Wii Game disc into your DVD drive.
2. Click Ignore
3. Open Terminal ( Applications -> Utilities -> Terminal
4. Type drutil status ( Get the Name i.e. /dev/disk1 )
5. Type dd if=/path_to_dvd of=/game_name.iso and wait 15 min
6. Type drutil eject to eject your game.
To copy
@Lotusshaney
Lotusshaney / appify.sh
Created June 12, 2018 09:06 — forked from oubiwann/appify.sh
appify — create the simplest possible Mac app from a shell script (adds an application icon)
#!/usr/bin/env bash
VERSION=4.0.1
SCRIPT=`basename "$0"`
APPNAME="My App"
APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns"
OSX_VERSION=`sw_vers -productVersion`
PWD=`pwd`
function usage {