Skip to content

Instantly share code, notes, and snippets.

/*********************************************************************
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
MIT license, check LICENSE for more information
Copyright (c) 2019 Ha Thach for Adafruit Industries
All text above, and the splash screen below must be included in
any redistribution
*********************************************************************/
@kyab
kyab / gist:cb203100018ed6e1c2c7c3959cd73633
Created December 10, 2021 16:17
Going Zero Controller プライバシーポリシー
Going Zero Controllerは、以下のようないかなるユーザー情報を収集しません。
・お客様の個人情報
・お客様のアプリ使用統計情報
・お客様のアプリ使用のロケーション
2021 Koji Yoshioka
@kyab
kyab / gist:3fec61ed2684cd2b701c0fd3a8527310
Created December 4, 2021 05:17
Going Zero Privacy Policy
Going Zero never collect user information.
// USBPrintApp.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include <Windows.h>
#include <iostream>
#include <cstdlib>
#include <SetupAPI.h>
#include <wdmguid.h>
#include <strsafe.h>
#include <winusb.h>
デフォルト 19:27:45.521421+0900 Late5 FRONTLOGGING: version 1
デフォルト 19:27:45.521442+0900 Late5 Registering, pid=84004
デフォルト 19:27:45.522759+0900 Late5 CHECKIN: pid=84004
デフォルト 19:27:45.536045+0900 Late5 CHECKEDIN: pid=84004 asn=0x0-0x1e1de1c foreground=1
デフォルト 19:27:45.560272+0900 Late5 Registered, pid=84004 ASN=0x0,0x1e1de1c
デフォルト 19:27:45.560535+0900 Late5 Registered, pid=84004 cgConnectionID=b0357
デフォルト 19:27:45.562881+0900 Late5 BringForward: pid=84004 asn=0x0-0x1e1de1c bringForward=1 foreground=1 uiElement=0 launchedByLS=1 modifiersCount=1 allDisabled=0
デフォルト 19:27:45.563602+0900 Late5 BringFrontModifier: pid=84004 asn=0x0-0x1e1de1c Modifier 0 hideAfter=0 hideOthers=0 dontMakeFrontmost=0 mouseDown=0/0 seed=0/0
デフォルト 19:27:45.563992+0900 Late5 BringForward: pid=84004 asn=0x0-0x1e1de1c
デフォルト 19:27:45.564157+0900 Late5 SetFrontProcess: asn=0x0-0x1e1de1c options=0
@kyab
kyab / vst3host.wip.mm
Last active October 9, 2020 11:54
vst3host2 wip
typedef IPluginFactory* (*THEAPI)();
typedef bool (*BundleEntryFunc) (CFBundleRef);
//#define BUNDLE_PATH @"/Library/Audio/Plug-Ins/VST/OldSkoolVerb.vst3"
//#define BUNDLE_PATH @"/Library/Audio/Plug-Ins/VST/SPAN.vst3"
#define BUNDLE_PATH @"/Library/Audio/Plug-Ins/VST3/UpStereo.vst3"
//#define BUNDLE_PATH @"/Users/koji/work/VST_SDK/VST3_SDK/build/VST3/Debug/helloworld.vst3"
//#define BUNDLE_PATH @"/Library/Audio/Plug-Ins/VST3/TAL-Chorus-LX.vst3"
#define BUNDLE_PATH @"/Library/Audio/Plug-Ins/VST3/TDR VOS SlickEQ.vst3"
//
// CEditorHost.hpp
// Late5 Studio
//
// Created by kyab on 2020/10/05.
// Copyright © 2020 kyab. All rights reserved.
//
#ifndef CEditorHost_hpp
#define CEditorHost_hpp
@kyab
kyab / vst3host.mm
Created October 6, 2020 10:07
Creating VST3 Host failed ........
#define BUNDLE_PATH @"/Library/Audio/Plug-Ins/VST3/TDR VOS SlickEQ.vst3"
- (IBAction)testVST:(id)sender {
NSBundle *bundle = [NSBundle bundleWithPath:BUNDLE_PATH];
[bundle load];
NSLog(@"bundle name = %@", bundle);
tresult res = 0;
{
snmpex_proto = Proto("snmpex","My SNMP Extension")
snmpex_proto.fields.location = ProtoField.string("snmpex_proto.location","Location")
-- create a function to dissect it
function snmpex_proto.dissector(buffer,pinfo,tree)
print("mydissector get called!(print)")
pinfo.cols.protocol = "SNMPEX"
@kyab
kyab / Youtube select audio output.js
Last active December 30, 2023 00:10
How to change Audio Output Device on Youtube (Chrome)
//References
/*
https://webrtc.github.io/samples/src/content/devices/multi/
https://www.youtube.com/html5?gl=JP&hl=ja
https://webrtc.github.io/samples/src/content/getusermedia/gum/
https://www.youtube.com/html5?gl=JP&hl=ja
Audio Output Devices API
https://www.w3.org/TR/audio-output/#htmlmediaelement-extensions