Skip to content

Instantly share code, notes, and snippets.

View chazmaniandinkle's full-sized avatar

cdinkle chazmaniandinkle

  • USA
View GitHub Profile
@chazmaniandinkle
chazmaniandinkle / casper.md
Created August 15, 2019 17:52 — forked from motleytech/casper.md
Deal with casper

Unofficial Guide to JAMF Casper

This page documents the external/internal behavior of Casper.

Files

Casper installed itself into the following directories:

  • /Library/Application Support/JAMF
    • ManagementFrameworkScripts - a set of scripts that runs on certain events
      • StartupScript.sh - Activated when jamf is started
      • loginhook.sh - Activated when user login
  • logouthook.sh - Activated when user logout
@chazmaniandinkle
chazmaniandinkle / 0_README.md
Last active July 1, 2023 16:20
Guide for setting up Tree Style Tabs as replacement for horizontal tab bar in Firefox

This gist is to help in setting up the Tree Style Tabs sidebar as a full replacement of the built-in horizontal tabs bar in Firefox. These settings are customized to what I've found to be the most comfortable, but feel free to experiment with them and find the settings that are perfect for you!


userChrome.css

This should be added to userChrome.css file under your FireFox profile (on my Macbook, "/Users/<username>/Library/Application Support/Firefox/Profiles/<default profile>/chrome/userChrome.css")

tree-style-tab_extension-extras.css

After installing the "Tree Style Tabs" Firefox extension, open the extension settings and paste this into the text box under "Advanced -> Extra style rules for sidebar contents"

{
"mousedown": {
"1": "KEYCODE_APP_SWITCH",
"2": "KEYCODE_BACK"
},
"keydown": {
"ArrowDown": "KEYCODE_DPAD_DOWN",
"ArrowLeft": "KEYCODE_DPAD_LEFT",
"ArrowRight": "KEYCODE_DPAD_RIGHT",
"ArrowUp": "KEYCODE_DPAD_UP",
@chazmaniandinkle
chazmaniandinkle / p9k_kubectl_toggle.zsh
Last active August 16, 2018 14:23
Small script to allow for toggling the kubecontext element in the POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS variable.
# Version: 1.0
# Date: 8/16/2018
# Author: Chaz Dinkle
# Powerlevel9k kubectl toggle
kon () {
RPROMPT=($POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS)
if [[ ${RPROMPT[(ie)kubecontext]} -gt ${#RPROMPT} ]]
then
RPROMPT[1]=(kubecontext $RPROMPT)

Keybase proof

I hereby claim:

  • I am chazmaniandinkle on github.
  • I am cdinkle (https://keybase.io/cdinkle) on keybase.
  • I have a public key whose fingerprint is A428 CA5F 1301 7F2E 31C3 E5B0 66C9 0A38 40FB DFC0

To claim this, I am signing this object: