Skip to content

Instantly share code, notes, and snippets.

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
@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"
# 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"
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.
@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 / 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:

class Swig < Formula
desc "Generate scripting interfaces to C/C++ code"
homepage "http://www.swig.org/"
url "https://downloads.sourceforge.net/project/swig/swig/swig-3.0.12/swig-3.0.12.tar.gz"
sha256 "7cf9f447ae7ed1c51722efc45e7f14418d15d7a1e143ac9f09a668999f4fc94d"
bottle do
sha256 "7307b4ffe3222715b2206e6477c5e3022881a730eb95a717d41a3df8e6e20455" => :mojave
sha256 "c0e2656fd10d57281280d20ce8bf9a060cf8714f4283dd1dfde383b3688d9ed1" => :high_sierra
# 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.10/5.10.1/single/qt-everywhere-src-5.10.1.tar.xz"
mirror "https://www.mirrorservice.org/sites/download.qt-project.org/official_releases/qt/5.10/5.10.1/single/qt-everywhere-src-5.10.1.tar.xz"
sha256 "05ffba7b811b854ed558abf2be2ddbd3bb6ddd0b60ea4b5da75d277ac15e740a"
head "https://code.qt.io/qt/qt5.git", :branch => "5.10", :shallow => false
extern crate nng;
extern crate hidapi;
use hidapi::HidApi;
use std::os::raw::{c_int, c_char, c_void};
use std::ptr;
use std::ffi::CString;
use std::io::{self, Write};
use std::process::Command;