Skip to content

Instantly share code, notes, and snippets.

View jonesiscoding's full-sized avatar

AMJones jonesiscoding

View GitHub Profile
@jonesiscoding
jonesiscoding / free_hardware_license.txt
Last active June 11, 2025 21:26
The "MIT" Free Hardware License
Permission is hereby granted, free of charge, to any person obtaining the attached hardware and associated cabling (the "Hardware"), to deal in the hardware without restriction, including without limitation the rights to use, modify, sell, or otherwise dispose of the hardware, and to permit persons to whom the hardware is furnished to do so, subject to the following conditions:
THE HARDWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OR SUPPORT OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF FUNCTIONALITY, SAFETY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL ANY FORMER OWNER OR USER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE HARDWARE OR THE USE OR OTHER DEALINGS IN THE HARDWARE.
THIS HARDWARE MAY NOT BE RETURNED FOR ANY REASON; IN THE EVENT THAT THE HARDWARE IS NO LONGER WANTED OR NEEDED, IT MUST BE DISPOSED OF ACCORDING TO YOUR LOCAL LAWS AND ORDINANCES.
<?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>PayloadContent</key>
<array>
<dict>
<key>PayloadDescription</key>
<string>Configures Gatekeeper to allow YourAppNameHere</string>
<key>PayloadDisplayName</key>
@jonesiscoding
jonesiscoding / com.apple.systempreferences.intelligence.json
Last active January 14, 2025 21:55
Disable the Apple Intelligence & Siri System Settings Pane
{
"title": "Siri System Settings (com.apple.systempreferences)",
"description": "Use this section to disable the Siri & Apple Intelligence panel in System Settings.",
"links": [
{
"rel": "Siri-Specific Source",
"href": "https://gist.github.com/jonesiscoding/270dffd9676b212ae741b9571afc9751"
},
{
"rel": "Original Source",
@jonesiscoding
jonesiscoding / com.apple.applicationaccess
Last active May 1, 2025 20:50
JSON Schema for JAMF to Enable or disable specific Apple Intelligence Features
{
"title": "Apple Intelligence (com.apple.applicationaccess)",
"description": "Enable or disble specific Apple Intelligence Features",
"links": [
{
"rel": "Source",
"href": "https://gist.github.com/jonesiscoding/b785fa95838f220eb36cf0daad19a1d8"
},
{
"rel": "Documentation",
@jonesiscoding
jonesiscoding / get-time-machine-latest.sh
Last active June 20, 2024 19:47
Last Time Machine Backup
#!/bin/bash
# @file get-time-machine-latest.sh
# @brief Last Time Machine Backup
# @category Operating system
# @type Date
# @revision
# @uploaded
if [ -f '/var/db/.AppleSetupDone' ]; then
@jonesiscoding
jonesiscoding / org.mozilla.firefox.json
Last active April 17, 2024 18:04
Jamf JSON Custom Profile Schema for Firefox, which adds dom.security.https_only_mode and dom.block_download_insecure
{
"$schema": "http://json-schema.org/schema#",
"title": "Mozilla Firefox Settings",
"description": "Domain: org.mozilla.firefox",
"source": "https://gist.github.com/jonesiscoding/ee942ac712bb569e973ee257b295e875",
"definitions": {
"bookmark": {
"type": "object",
"title": "Bookmark",
"properties": {
@jonesiscoding
jonesiscoding / github.sh
Created July 19, 2022 20:15
continue alternative
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
msg "You chose not to make a new site. Why are you even here? Exiting..."
echo
exit 1
fi
@jonesiscoding
jonesiscoding / gist:d1c9c12682a04b5106c5d471b6e6ca65
Created June 29, 2021 18:58
Simple Parse Date In Javascript
function parseDate(str) {
var parts = str.split( /\s|,|-|\// );
var isNum = function(val) { return !isNaN( parseFloat( val ) ) && isFinite( val ); };
var isYear = function(val) { return 4 === val.length && isNum(val); };
var yIndex = null;
var mIndex = null;
var dIndex = null;
var rtDate = null;
if ( parts.length === 2 ) {
# Get the final URL after the redirect
DL_URL=$( curl "${APP_URL}" -s -L -I -o /dev/null -w '%{url_effective}' )