Skip to content

Instantly share code, notes, and snippets.

View macmule's full-sized avatar

macmule macmule

View GitHub Profile
@timsutton
timsutton / LoginDialog.xml
Last active November 27, 2019 09:07
Vectorworks 2017 deployment stuff - Munki pkginfos and a Luggage project for network licensing
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<LoginDialog>
<Days>1</Days>
<AutoFindServer>0</AutoFindServer>
<AutoFindMaxTime>1</AutoFindMaxTime>
<DontShowAtStartup>1</DontShowAtStartup>
<Servers>
<Server>license-server.org.my:5053</Server>
</Servers>
<Modules>
@thousandlemons
thousandlemons / how-to-connect-django-to-remote-mysql.md
Created November 1, 2016 09:06
How to Connect Django to Remote MySQL

How to Connect Django to Remote MySQL

==[ONLY for Ubuntu]== Install libmysqlclient-dev

$ sudo apt-get install libmysqlclient-dev

Install mysqlclient.

@pudquick
pudquick / dump_efi_images.py
Last active June 20, 2020 15:47
Decompressing and re-assembling LVZN compressed animations and logos from boot.efi
# This file parses this file:
# https://github.com/Piker-Alpha/macosxbootloader/blob/El-Capitan/src/boot/NetBootImages.h
# and this one:
# https://github.com/Piker-Alpha/macosxbootloader/blob/El-Capitan/src/boot/AppleLogoData.h
from ctypes import CDLL, create_string_buffer, c_size_t, c_void_p
import re
CPK = CDLL('/System/Library/PrivateFrameworks/PackageKit.framework/Versions/Current/PackageKit')
lzvn_decode = CPK.lzvn_decode
#!/usr/bin/python
import objc
import plistlib
class attrdict(dict):
__getattr__ = dict.__getitem__
__setattr__ = dict.__setitem__
ServerInformation = attrdict()
@bruienne
bruienne / elcap_incompatible.txt
Last active November 30, 2015 12:55
List of known incompatible apps for El Cap
1Password 2.12.1 ['/Applications/1Password.app', '/Library/InputManagers/1PasswdIM/1PasswdIM.bundle']
3D Weather Globe Screensaver 1.0 ['/Library/Screen Savers/3D Weather Globe Deluxe Edition.saver', '/Library/Screen Savers/3D Weather Globe 2.saver']
ADmitMac 9.0.1
AirDisplay 1.6.3 ['/System/Library/Extensions/AVFrameBuffer.kext', '/System/Library/Extensions/AVVideoCard.kext']
AJA 12.2.1
AJA IOHD Driver 6.0.3
Antidote HD 7.2
App Tamer 2.0.5
AT&T Laptop Connect Card 1.0.4
Avast Mac Security 10.14
@pudquick
pudquick / keymaster.py
Last active May 26, 2020 15:13
Pythonic in-depth control of the user keychain domain
import os.path, base64
from ctypes import CDLL, Structure, POINTER, byref, addressof, create_string_buffer, c_int, c_uint, c_ubyte, c_void_p, c_size_t
from CoreFoundation import kCFStringEncodingUTF8
# Wheee!
Security = CDLL('/System/Library/Frameworks/Security.Framework/Versions/Current/Security')
# I don't use the pyObjC CoreFoundation import because it attempts to bridge between CF, NS, and python.
# When you try to mix it with Security.Foundation (pure C / CF), you get nasty results.
# So I directly import CoreFoundation to work with CFTypes to keep it pure of NS/python bridges.
CFoundation = CDLL('/System/Library/Frameworks/CoreFoundation.Framework/Versions/Current/CoreFoundation')