This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
brew uninstall --force --ignore-dependencies ffmpeg | |
brew install chromaprint amiaopensource/amiaos/decklinksdk | |
brew tap homebrew-ffmpeg/ffmpeg | |
brew install ffmpeg | |
brew install --cask xquartz | |
brew upgrade homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg | grep -vE '\s' | grep -- '--with-' | grep -vi 'chromaprint\|decklink' | tr '\n' ' ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func flashScreen() { | |
let inDuration: CGDisplayFadeInterval = 0.0 | |
let outDuration: CGDisplayFadeInterval = 1.0 | |
let color = NSColor.white | |
var fadeToken: CGDisplayFadeReservationToken = 0 | |
let colorToUse = color.usingColorSpaceName(NSColorSpaceName.calibratedRGB)! | |
let err = CGAcquireDisplayFadeReservation(inDuration + outDuration, &fadeToken) | |
if err != CGError.success { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# Usage: license | |
# Prints an MIT license appropriate for totin' around. | |
# | |
# $ license > COPYING | |
#!/bin/sh | |
echo "Copyright (c) `date +%Y` Keaton Burleson | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import struct | |
import binascii | |
# Written by Bob Steinbeiser (https://medium.com/@xtalker) | |
rawSocket = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, | |
socket.htons(0x0003)) | |
MAC = '74c24671971c' |