Skip to content

Instantly share code, notes, and snippets.

Avatar

Zack McCauley WardsParadox

View GitHub Profile
@WardsParadox
WardsParadox / report
Created February 24, 2023 15:42
MSB crash
View report
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Managed App Schema Builder [42732]
Path: /private/var/folders/*/Managed App Schema Builder.app/Contents/MacOS/Managed App Schema Builder
Identifier: com.jamf.pse.ManagedAppSchemaBuilder
Version: 0.9.7 (3)
Code Type: X86-64 (Translated)
Parent Process: launchd [1]
@WardsParadox
WardsParadox / run_under_rosetta.py
Last active December 20, 2022 23:30 — forked from macsimom/main.m
openwithrosetta - a tool to check the box "Open with Rosetta" on Apple Silicon Big Sur Macs
View run_under_rosetta.py
import os
import subprocess
import sys
from Foundation import * # pylint: disable=E0611 #
import objc
from SystemConfiguration import SCDynamicStoreCopyConsoleUser
def is_arm64():
@WardsParadox
WardsParadox / aj.log
Created September 3, 2019 22:12
AppleJuice Crash catalina
View aj.log
default 16:10:50.274399-0600 lsd Non-fatal error enumerating at <private>, continuing: Error Domain=NSCocoaErrorDomain Code=260 "The file “PlugIns” couldn’t be opened because there is no such file." UserInfo={NSURL=PlugIns/ -- file:///Volumes/Apple%20Juice/Apple%20Juice.app/Contents/Library/LoginItems/LaunchAtLoginHelper.app/Contents/, NSFilePath=/Volumes/Apple Juice/Apple Juice.app/Contents/Library/LoginItems/LaunchAtLoginHelper.app/Contents/PlugIns, NSUnderlyingError=0x7f9005653f00 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
default 16:10:50.311729-0600 lsd SecTranslocateCreateSecureDirectoryForURL: created /private/var/folders/td/79t1d1ps2lbb41jwt_4g7bvh0000gn/T/AppTranslocation/20F6CC80-2AB2-45E5-805D-77D8A1099D1C/d/Apple Juice.app
default 16:10:50.458385-0600 Finder LAUNCHING:0x0-0x136136 Apple Juice foreground=0 bringForward=0 seed=814 userActivityCount=0
default 16:10:50.472707-0600 kernel AMFI: '/private/var/folders/td/79t1d1ps2lbb41jwt_4g7bvh0000gn/T/AppTranslocation/20F6CC8
@WardsParadox
WardsParadox / passgen.py
Created April 30, 2018 19:36
PassGen for student passwords
View passgen.py
#!/usr/bin/python
'''
Generates password of random 4-letter word + 4-digit number
'''
from random import randint, \
choice
import os
import argparse
import re
@WardsParadox
WardsParadox / chrome.mobileconfig
Created April 9, 2018 17:07
Newer style chromeconfig example for multi domain pattern sign-in whitelist
View chrome.mobileconfig
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadIdentifier</key>
<string>org.example.profile.chrome</string>
<key>PayloadRemovalDisallowed</key>
<true/>
<key>PayloadScope</key>
<string>System</string>
@WardsParadox
WardsParadox / Destiny Tables and Columns
Created September 8, 2017 19:39
Follet Destiny Tables and Columns
View Destiny Tables and Columns
Table Name , Column
(u'Address', u'AddressID')
(u'Address', u'AddressType')
(u'Address', u'City')
(u'Address', u'Line1')
(u'Address', u'Line2')
(u'Address', u'OtherPhone')
(u'Address', u'PatronID')
(u'Address', u'PrimaryPhone')
(u'Address', u'State')
@WardsParadox
WardsParadox / chrome_pfm_manifest_merger.py
Last active July 13, 2018 21:42
Chrome PFM Merger - Requires Google Chrome in the Applications Folder
View chrome_pfm_manifest_merger.py
#!/usr/bin/python
# # -*- coding: utf-8 -*-
import plistlib
import os
from subprocess import call
#import base64
manifestpath = os.path.abspath('/Applications/Google Chrome.app/Contents/Resources/com.google.Chrome.manifest/Contents/Resources/com.google.Chrome.manifest')
@WardsParadox
WardsParadox / encode.py
Last active December 19, 2016 19:48 — forked from signed0/gist:2031157
Google Polyline encoder & decoder
View encode.py
#!/usr/bin/python
'''Provides utility functions for encoding and decoding linestrings using the
Google encoded polyline algorithm.
Original Script at https://gist.github.com/signed0/2031157
'''
from sys import argv
from ast import literal_eval
def encode_coords(coords):
'''Encodes a polyline using Google's polyline algorithm
@WardsParadox
WardsParadox / boxcarNotify.py
Created November 15, 2016 21:31
boxcarNotify.py
View boxcarNotify.py
#!/usr/bin/python
'''
Sends boxcar.io notifications, you need a token so sign up at boxcar.io!
'''
try:
import requests
except ImportError:
print 'Please install requests'
defaulticon = "https://github.com/munkireport/munkireport-php/raw/wip/assets/images/favicons/android-chrome-192x192.png"
def boxcarnotify(accesstoken, title, message, sound="success",