Skip to content

Instantly share code, notes, and snippets.

View mikewaters's full-sized avatar

Mike Waters mikewaters

  • Dealertrack
View GitHub Profile
@mikewaters
mikewaters / macOS_SytemPrefs.md
Created August 8, 2023 15:33 — forked from rmcdongit/macOS_SytemPrefs.md
Apple System Preferences URL Schemes

macOS 10.15 System Preference Panes

Below are a list of System Preference pane URLs and paths that can be accessed with scripting to assist users with enabling macOS security settings without having to walk them through launching System Preferences, finding panes, and scrolling to settings. Not all panes have an accessible anchor and some are OS specific.

To find the Pane ID of a specific pane, open the System Preferences app and select the desired Preference Pane. With the pane selected, open the ScriptEditor.app and run the following script to copy the current Pane ID to your clipboard and display any available anchors:

tell application "System Preferences"
	set CurrentPane to the id of the current pane
	set the clipboard to CurrentPane
# Luxafor via Python
# Dave Irvine www.daveirvine.me @dave_irvine
# Get PyUSB from:
# http://walac.github.io/pyusb/
#!/usr/bin/python
import usb.core
import usb.util
openapi: 3.0.0
info:
description: DMS Partner Api Documentation
version: "1.0.1"
title: DMS Rest Api
contact:
email: robert.waters@coxautoinc.com
paths:
/lookup:
parameters:
@mikewaters
mikewaters / iterm2-profile.plist
Last active May 9, 2018 15:30
Iterm2 Dynamic Profile
{
"Profiles": [
{
"Horizontal Spacing" : 1,
"Tags" : [
"Dynamic"
],
"Ansi 12 Color" : {
"Green Component" : 0.3333333432674408,
"Red Component" : 0.3333333432674408,
@mikewaters
mikewaters / macbook-provision.sh
Last active November 30, 2021 02:06
Provision a macbook for development
sudo scutil --set HostName some-muppet-name
# update the keyboard KeyRepeat and DelayUntilRepeat (this is annoying to script)
# install XCode in the app store
# add myself to sudoers
# mike ALL=(ALL) ALL
sudo visudo /private/etc/sudoers

Keybase proof

I hereby claim:

  • I am mikewaters on github.
  • I am mikewaters (https://keybase.io/mikewaters) on keybase.
  • I have a public key whose fingerprint is 33AF 45A2 C393 A46E DFBA FFB8 E102 B2A8 CD65 8221

To claim this, I am signing this object:

# download latest libevent2 and tmux sources, and extract them somewhere
#
# at the time of writing:
# https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
# http://downloads.sourceforge.net/tmux/tmux-1.7.tar.gz
#
# install deps
yum install gcc kernel-devel make ncurses-devel
@mikewaters
mikewaters / mkv2m2ts
Created September 1, 2012 23:16 — forked from vortex-5/mkv2m2ts
Script to convert MKV2M2TS on linux
#!/bin/bash
#########################################
# Vortex-5's Remuxing Script based on: #
# EqUaTe's MKV to M2TS remuxing script #
# #
# Version: 0.5.10 #
# #
# This script takes an H.264 encoded #
# video, in an MKV container, demuxes #
@mikewaters
mikewaters / human_enum.py
Created February 29, 2012 19:20 — forked from anthonywu/human_enum.py
Python Human Enums
"""
Copyright (c) 2012 Anthony Wu, twitter.com/anthonywu
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@mikewaters
mikewaters / gist:1287749
Created October 14, 2011 17:29
Add a submit button to Flexigrid quicksearch bar.
*** flexigrid.js.orig 2011-10-14 13:25:31.162849505 -0400
--- flexigrid.js 2011-10-14 13:24:35.582840402 -0400
***************
*** 1034,1040 ****
}
$(g.sDiv).append("<div class='sDiv2'>" + p.findtext +
" <input type='text' value='" + p.query +"' size='30' name='q' class='qsbox' /> "+
! " <select name='qtype'>" + sopt + "</select></div>");
//Split into separate selectors because of bug in jQuery 1.3.2
$('input[name=q]', g.sDiv).keydown(function (e) {