Skip to content

Instantly share code, notes, and snippets.

View scottpidzarko's full-sized avatar

Scott Pidzarko scottpidzarko

  • ClearAlan Inc.
  • Edmonton, AB
  • 21:19 (UTC -06:00)
View GitHub Profile
@ca0abinary
ca0abinary / mptz-protocol-re.md
Created August 12, 2022 13:00
Polycom MPTZ Serial Connection Reverse Engineering Notes

Polycom Eagle Eye Protocol RE

MPTZ-6

Serial connection at 9600 8-E-1

Device issues e0 until initialized with 81 40. Initialization code can be sent at any time.

import serial
@anpin
anpin / .gitlab-ci.yml
Created August 18, 2021 10:12 — forked from ashalkhakov/.gitlab-ci.yml
Running .NET 3.5 CF builds under Docker for Windows
# this is the GitLab-CI file for building the image
variables:
CURRENT_IMAGE_TAG: rfid-applied/netcf35_build_environment:dev
stages:
- dockerize
dockerize:
stage: dockerize
script:
S = TcpSocket.New();
S.EventHandler = print;
S:Connect(<HOST>, 80);
S.ReconnectTimeout = 0;
function randomWebSocketKey()
return Crypto.Base64Encode(('x'):rep(16):gsub('.', function() return string.char(math.random(0,255)) end));
end;
S.Connected = function()
@gdyr
gdyr / redis.lua
Last active January 17, 2023 22:52
Q-Sys Redis Client
--[[
Q-Sys Redis Client
Author: Michael Goodyear
Email: michael@locimation.com
Version: 1.1
Copyright 2020 Locimation Pty Ltd
Permission is hereby granted, free of charge,
to any person obtaining a copy of this software
and associated documentation files (the "Software"),
@gdyr
gdyr / qsys-b64-img.lua
Created December 30, 2019 19:06
Q-Sys Dynamic button images
--[[
Notes:
- Remove any data:image/type; prefix
- Legend = '' prevents the Style JSON from appearing as the button label
- DrawChrome hides the button itself and just displays the image.
]]
Controls['Artwork'].Style = json.encode({
DrawChrome = false,
@gdyr
gdyr / list-playlists.lua
Last active January 17, 2023 22:53
List playlists on Q-Sys using Lua
-- First we find all the files in the "playlist" directory
PlaylistFiles = dir.get('media/Playlists/')
-- Next we make a table that's going to contain all our playlist names
PlaylistNames = {}
-- Next we go through the list of playlist files we've found
for _,f in ipairs(PlaylistFiles) do
-- Open the file
@ashalkhakov
ashalkhakov / .gitlab-ci.yml
Last active August 16, 2022 17:24
Running .NET 3.5 CF builds under Docker for Windows
# this is the GitLab-CI file for building the image
variables:
CURRENT_IMAGE_TAG: rfid-applied/netcf35_build_environment:dev
stages:
- dockerize
dockerize:
stage: dockerize
script:
You can use Visual Studio 2015 to compile to Compact Framework 3.5 by following the instructions below:
- Install the '.NET Compact Framework 3.5 Redistributable';
- Copy files from '*C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE*';
- Paste the files at '*C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\\.NETFramework\v3.5\Profile\CompactFramework*' directory;
- Create a directory named '*RedistList*';
- Create a file named '*FrameworkList.xml*' at '*RedistList*' directory;
- Set the follwing content to the file created:
<?xml version="1.0" encoding="utf-8"?>
@skarllot
skarllot / net35-cf.md
Last active July 3, 2024 08:47
Build .NET Compact Framework 3.5

Install

Force MSBuild support

  • Copy files and directories from 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\*' to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5';
  • Copy files from 'C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\Debugger\BCL\*' to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\CompactFramework' directory;
  • Create 'RedistList' directory inside created 'CompactFramework' directory;
  • Create 'FrameworkList.xml' inside 'RedistList' directory and type the following:
@alirobe
alirobe / reclaimWindows10.ps1
Last active July 3, 2024 09:36
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###