Skip to content

Instantly share code, notes, and snippets.

View mikewaters's full-sized avatar

Mike Waters mikewaters

  • Dealertrack
View GitHub Profile
@mikewaters
mikewaters / init.lua
Last active July 5, 2024 21:19 — forked from ebai101/init.lua
reason pinch zoom
--[[
Pinch zoom script for Reason
This file should be put in the ~/.hammerspoon directory
or just click Open Config in the Hammerspoon menu and paste all of this in
To use, just pinch with the trackpad while in the sequencer.
Hold shift to zoom in on the playhead instead of the cursor
Hold command to zoom vertically
]]
@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: [email protected]
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: