Skip to content

Instantly share code, notes, and snippets.

View scriptsandthings's full-sized avatar

Scripts and Things scriptsandthings

  • Columbus, OH
View GitHub Profile
@scriptsandthings
scriptsandthings / jssdistrorepair.sh
Created March 2, 2022 21:15 — forked from shurkin18/jssdistrorepair.sh
JSS distribution point share folder permissions and accounts repair
#!/bin/bash
#################################################################################################################
# This script assumes, JSS is using default read and write usernames: jamf, jamfadmin
# This script also assumes that local administrator account used on the mac is named: administrator
#################################################################################################################
#Ask user to point to the share folder, browse to it via "cd"
FOLDER_TO_PROCESS=$(/usr/bin/osascript << EOD
tell application "System Events"
@scriptsandthings
scriptsandthings / Add Computer to Static Group.bash
Created March 11, 2022 04:04 — forked from talkingmoose/Add Computer to Static Group.bash
Prompts an administrator to choose a Jamf Pro static group and provide a computer serial number to add to that group.
#!/bin/bash
# server connection information
URL="https://talkingmoose.jamfcloud.com"
userName="API-Editor"
password="P@55w0rd"
httpErrorCodes="200 Request successful
201 Request to create or update object successful
400 Bad request
@scriptsandthings
scriptsandthings / pdf_conversions.md
Created June 27, 2022 10:35 — forked from stevekm/pdf_conversions.md
Commands to convert multi-page PDF to/from multiple PNG files with GhostScript & ImageMagick
@scriptsandthings
scriptsandthings / Download macOS Monterey in Background.zsh
Created July 13, 2022 20:01 — forked from talkingmoose/Download macOS Monterey in Background.zsh
Creates a launch daemon and script on target Macs in a Jamf Pro policy to download the specified macOS installer and update Jamf Pro's inventory. This is preferable to running a command directlt in policy, which can take 30+ minutes to complete, preventing other policies from running. The script self destructs once it sees the installer in the A…
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Partner Program Manager
Jamf
[email protected]
https://gist.github.com/6b78ba3fc4a6623dbc8225e2df38d570
@scriptsandthings
scriptsandthings / Backup-and-Restore-GPG-and-SSH-keys.md
Created April 10, 2023 22:13 — forked from colematt/Backup-and-Restore-GPG-and-SSH-keys.md
[Backup and Restore GPG and SSH keys] #git #gpg #ssh

Backup

  1. Copy both id_rsa and id_rsa.pub from ~/.ssh/ to a USB drive. Identify the private key by executing the following command.
    gpg --list-secret-keys --keyid-format LONG
    
  2. It will show something similar to this.
    sec   4096R/3AA5C34371567BD2 2016-03-10 [expires: 2017-03-10]
    
@scriptsandthings
scriptsandthings / GPT4all-langchain-demo.ipynb
Created April 11, 2023 01:06 — forked from psychemedia/GPT4all-langchain-demo.ipynb
Example of running GPT4all local LLM via langchain in a Jupyter notebook (Python)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scriptsandthings
scriptsandthings / odbc_on_mac.md
Created April 14, 2023 17:08 — forked from JonathanWillitts/odbc_on_mac.md
mysql, ODBC, STATA 16 on MAC (M1 Silicon and Intel-based)
@scriptsandthings
scriptsandthings / odbc_on_mac.md
Created April 14, 2023 17:08 — forked from erikvw/odbc_on_mac.md
mysql, ODBC, STATA 16 on MAC (M1 Silicon)
@scriptsandthings
scriptsandthings / README.md
Created May 25, 2023 01:36 — forked from tomdaley92/README.md
Proxmox - SPICE Client setup for MacOS

Proxmox - SPICE client setup for MacOS

  1. Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.

    brew tap jeffreywildman/homebrew-virt-manager
    brew install virt-viewer
  2. Once that's installed should be able make a call remote-viewer with a pve-spice.vv file downloaded from proxmox web interface