openssl genrsa -aes256 -passout pass:gsahdg -out server.pass.key 4096
openssl rsa -passin pass:gsahdg -in server.pass.key -out server.key
rm server.pass.key
openssl req -new -key server.key -out server.csr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from onvif import ONVIFCamera | |
| from time import perf_counter, sleep | |
| from itertools import cycle | |
| # install onvif-zeep and clone repo: https://github.com/FalkTannhaeuser/python-onvif-zeep | |
| # fill in correct path to cloned repository | |
| path_to_onvif_zeep_repo = "../../python-onvif-zeep" | |
| mycam = ONVIFCamera("192.168.0.68", 80, "user", "password", path_to_onvif_zeep_repo + "/wsdl/") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM mcr.microsoft.com/vscode/devcontainers/python:0-3.7-bullseye | |
| # Install controller dependencies | |
| COPY controller/requirements.txt . | |
| RUN pip install -r requirements.txt | |
| ENV PYTHONPATH "adapters:adapters/Utils/Utils:adapters/GRPC/Controller:adapters/GRPC/Adapter:controller/interfaces:controller/managers:controller/managers/adaptermanagers:controller/sessions:controller/utils" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from multiprocessing import Pool | |
| def do_work(params): | |
| (i, msg) = params | |
| pass | |
| collection = [(i, "hello") for i in range(100)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # python 2.7 | |
| var_count = 1024 | |
| formula = "A0" | |
| operators = { | |
| 0: "&", | |
| 1: "|", | |
| 2: "->", | |
| 3: "<->" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible " no compat mode | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'gruvbox-community/gruvbox' | |
| call plug#end() | |
| " colorscheme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---- Linux ---- | |
| dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:escape']" | |
| ---- Windows ---- | |
| REGEDIT4 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
| "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,01,00,01,00,3a,00,00,00,00,00 |