Skip to content

Instantly share code, notes, and snippets.

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.
irsend.sendNEC( 0x57E318E7, 32);
// E817 power
// 18E7 power off
// 16E9 power on
// 21DE hdmi1
// 22DD hdmi 2
// 23DC hdmi 3
// F00F vol up
@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
@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;
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;
use std::os::raw::{c_int, c_char, c_void};
use std::ptr;
use std::ffi::CString;
use std::io::{self, Write};
#[repr(C)] // ensures that the memory layout of the struct is the same in Rust as in C.
pub struct obs_module_t {
pub mod_name: *mut c_char,
pub file: *const c_char,
pub bin_path: *mut c_char,