Skip to content

Instantly share code, notes, and snippets.

@socialstijn
socialstijn / appToPkg.sh
Created March 8, 2019 14:09 — forked from bwmorales/appToPkg.sh
(Addigy) Create PKGs from bundled apps, PNG of App icon, and text file of metadata for Addigy.
#!/usr/bin/env bash
###############################################################################
# Copyright 2017 Benjamin Moralez #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
@socialstijn
socialstijn / Get All Users AppleID.sh
Last active March 7, 2019 19:43 — forked from AndrewWCarson/Get All Users AppleID.sh
Iterate through all login users on the device and output their Apple ID.
#!/bin/bash
# (C) Andrew Worth Carson
# MIT License: https://andrewworthcarson.com/mit_license.html
for user in $(dscl . list /Users UniqueID | awk '$2 >= 500 {print $1}'); do
userHome=$(dscl . read /Users/"$user" NFSHomeDirectory | sed 's/NFSHomeDirectory://' | grep "/" | sed 's/^[ \t]*//')
appleid=$(dscl . readpl "${userHome}" dsAttrTypeNative:LinkedIdentity appleid.apple.com:linked\ identities:0:full\ name 2> /dev/null | awk -F'full name: ' '{print $2}')
if [[ "${appleid}" == "" ]]; then
echo "No AppleID for user:${user}"
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".slidingDiv").hide();
$(".hide_show").hide();
$(".show_hide").show();