Skip to content

Instantly share code, notes, and snippets.

View mpolinowski's full-sized avatar
👉
[object Object]

Mike Polinowski mpolinowski

👉
[object Object]
View GitHub Profile
@mpolinowski
mpolinowski / mqtt_entities.yaml
Created April 3, 2024 10:51
Home Assistant INSTAR MQTTv5 Camera Configuration
sensor:
- device:
identifiers: in8415_office
manufacturer: INSTAR Deutschland GmbH
model: INSTAR 2k+ IN-8415 WLAN
name: IN-8415 2k+ Office
configuration_url: "http://192.168.2.201:80"
availability:
topic: cameras/201/status/connection
payload_available: '{"val":"online"}'

Browser Console

Chrome

retort.js:48 Uncaught TypeError: Cannot read properties of undefined (reading 'postStream')
    at n.postFor (retort.js:48:1)
    at n.disabledFor (retort.js:72:1)
    at r.<anonymous> (retort-init.js:49:1)
    at r.buildClasses (post.js:966:56)
@mpolinowski
mpolinowski / cvat_server.log
Last active January 24, 2024 09:59
Nuclio serverless | Could not login on the server | 405 (Method Not Allowed) | cvat_server restarting https://github.com/opencv/cvat/issues/7392
wait-for-it.sh: waiting for cvat_db:5432 without a timeout
wait-for-it.sh: cvat_db:5432 is available after 0 seconds
Traceback (most recent call last):
File "/home/django/manage.py", line 20, in <module>
execute_from_command_line(sys.argv)
File "/opt/venv/lib/python3.10/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/opt/venv/lib/python3.10/site-packages/django/core/management/__init__.py", line 382, in execute
settings.INSTALLED_APPS
File "/opt/venv/lib/python3.10/site-packages/django/conf/__init__.py", line 102, in __getattr__
@mpolinowski
mpolinowski / getMqttAttr.js
Created January 4, 2024 17:39
INSTAR WQHD 2k+ Camera CGI Commands / REST API - Get camera state using javascript:
const getRequest = {
cgiGetCommand: 'getmqttattr',
cameraIp: '192.168.2.125',
cameraPort: '80',
authToken: '7PZv8N63c7wYYRxBw39pnRYNRnbdaBTTaK'
}
const fetchDataWithAuthHeader = async (getRequest) => {
try {
const customHeaders = new Headers()
--[[
THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
`lvim` is the global options object
]]
-- vim options
vim.opt.shiftwidth = 2
vim.opt.tabstop = 2
vim.opt.relativenumber = true
@mpolinowski
mpolinowski / gist:f8c98c3cf98dbe1b0ab2f0c6c379da28
Created September 23, 2023 10:55
ArchLinux Pacman: signature is unknown trust
sudo pacman -S yay
error: yay: signature from "TNE <tne@garudalinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/yay-12.1.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
# get key ID D6C9442437365605
sudo pacman-key --list-sigs TNE
# manually sign key
@mpolinowski
mpolinowski / cvat.json
Created September 20, 2023 05:17
CVAT COCO Labels
[
{
"name": "test",
"id": 1,
"color": "#3613e4",
"type": "any",
"attributes": []
},
{
"name": "person",
@mpolinowski
mpolinowski / oid-classes-segmentable.csv
Created September 2, 2023 07:48 — forked from hgaiser/oid-classes-segmentable.csv
List of classes from the OpenImages dataset that are segmentable.
/m/01bms0 Screwdriver
/m/03jbxj Light switch
/m/0jy4k Doughnut
/m/09gtd Toilet paper
/m/01j5ks Wrench
/m/01k6s3 Toaster
/m/05ctyq Tennis ball
/m/015x5n Radish
/m/0jwn_ Pomegranate
/m/02zt3 Kite
@mpolinowski
mpolinowski / tensorflow.log
Created March 21, 2023 02:08
TypeError: Unable to serialize [2.0896919 2.1128857 2.1081853] to JSON. Unrecognized type <class 'tensorflow.python.framework.ops.EagerTensor'>.
# see https://github.com/keras-team/keras/pull/17498
# tf.__version__
# '2.11.0'
INFO:tensorflow:Unsupported signature for serialization: ((TensorSpec(shape=(1, 1, 1152, 320), dtype=tf.float32, name='gradient'), <tensorflow.python.framework.func_graph.UnknownArgument object at 0x7fad400bcee0>, 140389004273456), {}).
INFO:tensorflow:Unsupported signature for serialization: ((TensorSpec(shape=(1, 1, 1152, 320), dtype=tf.float32, name='gradient'), <tensorflow.python.framework.func_graph.UnknownArgument object at 0x7fad400bcee0>, 140389004273456), {}).
INFO:tensorflow:Unsupported signature for serialization: ((TensorSpec(shape=(1, 1, 320, 1280), dtype=tf.float32, name='gradient'), <tensorflow.python.framework.func_graph.UnknownArgument object at 0x7fad400e7460>, 140389004548640), {}).
# An example configuration file for MPD.
# Read the user manual for documentation: http://www.musicpd.org/doc/user/
# Files and directories #######################################################
#
# This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database. This
# setting defaults to the XDG directory, otherwise the music directory will be
# be disabled and audio files will only be accepted over ipc socket (using