Skip to content

Instantly share code, notes, and snippets.

@DDRBoxman
DDRBoxman / keybase.md
Created July 4, 2019 02:00
keybase.md

Keybase proof

I hereby claim:

  • I am ddrboxman on github.
  • I am ddrboxman (https://keybase.io/ddrboxman) on keybase.
  • I have a public key ASCUteRIC0ERdKb7fk18hy8SMEIheinndSMCQpsJF5megQo

To claim this, I am signing this object:

@DDRBoxman
DDRBoxman / gist:3a02a681abd20af79de2cf3886d1b3d9
Created July 30, 2019 19:08
Flashing MK3 from raspbery pi
avrdude -v -p atmega2560 -c wiring -P /dev/ttyACM0 -b 115200 -D -U flash:w:/home/pi/Downloads/prusa3d_fw_MK3_3_7_2_2363.hex:i
@DDRBoxman
DDRBoxman / gist:6f28b34cfff28fe95556a581973bdd15
Last active August 21, 2020 11:11
Sony soundbar IR Codes
irsend.sendSony(0x3A0C, 15);
// sony soundbar
// 540C power
// 4B0D input
// 240C vol up
// 640C vol down
// 140C mute
// power off 7A0C
irsend.sendNEC( 0x57E318E7, 32);
// E817 power
// 18E7 power off
// 16E9 power on
// 21DE hdmi1
// 22DD hdmi 2
// 23DC hdmi 3
// F00F vol up
sudo install_name_tool -change @rpath/../bin/libobs.0.dylib @executable_path/../Frameworks/libobs.0.dylib /Library/Application\ Support/obs-studio/plugins/StreamDeckPlugin/bin/StreamDeckPlugin.so
sudo install_name_tool -change @rpath/../bin/libobs-frontend-api.dylib @executable_path/../Frameworks/libobs-frontend-api.dylib /Library/Application\ Support/obs-studio/plugins/StreamDeckPlugin/bin/StreamDeckPlugin.so
sudo install_name_tool -change @rpath/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets /Library/Application\ Support/obs-studio/plugins/StreamDeckPlugin/bin/StreamDeckPlugin.so
sudo install_name_tool -change @rpath/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui /Library/Application\ Support/obs-studio/plugins/StreamDeckPlugin/bin/StreamDeckPlugin.so
sudo install_name_tool -change @rpath/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore /Library/Application\ Support/obs-studio/plugins/StreamDeckPlugin/bin/StreamDeckPlugin.
sudo install_name_tool -change @rpath/../bin/libobs.0.dylib @executable_path/../Frameworks/libobs.0.dylib /Library/Application\ Support/obs-studio/plugins/StreamDeckPlugin/bin/StreamDeckPlugin.so
sudo install_name_tool -change @rpath/../bin/libobs-frontend-api.dylib @executable_path/../Frameworks/libobs-frontend-api.dylib /Library/Application\ Support/obs-studio/plugins/StreamDeckPlugin/bin/StreamDeckPlugin.so
sudo install_name_tool -change @rpath/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets /Library/Application\ Support/obs-studio/plugins/StreamDeckPlugin/bin/StreamDeckPlugin.so
sudo install_name_tool -change @rpath/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui /Library/Application\ Support/obs-studio/plugins/StreamDeckPlugin/bin/StreamDeckPlugin.so
sudo install_name_tool -change @rpath/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore /Library/Application\ Support/obs-studio/plugins/StreamDeckPlugin/bin/StreamDeckPlugin
sudo install_name_tool -change @rpath/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets /Library/Application\ Support/obs-studio/plugins/obs-ndi/bin/obs-ndi.so
sudo install_name_tool -change @rpath/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui /Library/Application\ Support/obs-studio/plugins/obs-ndi/bin/obs-ndi.so
sudo install_name_tool -change @rpath/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore /Library/Application\ Support/obs-studio/plugins/obs-ndi/bin/obs-ndi.so
# Patches for Qt must be at the very least submitted to Qt's Gerrit codereview
# rather than their bug-report Jira. The latter is rarely reviewed by Qt.
class Qt < Formula
desc "Cross-platform application and UI framework"
homepage "https://www.qt.io/"
url "https://download.qt.io/official_releases/qt/5.14/5.14.1/single/qt-everywhere-src-5.14.1.tar.xz"
mirror "https://mirrors.dotsrc.org/qtproject/archive/qt/5.14/5.14.1/single/qt-everywhere-src-5.14.1.tar.xz"
mirror "https://mirrors.ocf.berkeley.edu/qt/archive/qt/5.14/5.14.1/single/qt-everywhere-src-5.14.1.tar.xz"
sha256 "6f17f488f512b39c2feb57d83a5e0a13dcef32999bea2e2a8f832f54a29badb8"
@DDRBoxman
DDRBoxman / qt.rb
Created March 5, 2020 01:32
Brew QT 5.14.1
# Patches for Qt must be at the very least submitted to Qt's Gerrit codereview
# rather than their bug-report Jira. The latter is rarely reviewed by Qt.
class Qt < Formula
desc "Cross-platform application and UI framework"
homepage "https://www.qt.io/"
url "https://download.qt.io/official_releases/qt/5.14/5.14.1/single/qt-everywhere-src-5.14.1.tar.xz"
mirror "https://mirrors.dotsrc.org/qtproject/archive/qt/5.14/5.14.1/single/qt-everywhere-src-5.14.1.tar.xz"
mirror "https://mirrors.ocf.berkeley.edu/qt/archive/qt/5.14/5.14.1/single/qt-everywhere-src-5.14.1.tar.xz"
sha256 "6f17f488f512b39c2feb57d83a5e0a13dcef32999bea2e2a8f832f54a29badb8"
<!--?xml version="1.0" encoding="UTF-8"?-->
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.device.camera</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>