Skip to content

Instantly share code, notes, and snippets.

View PeterVoronov's full-sized avatar

Peter Voronov PeterVoronov

View GitHub Profile
@PeterVoronov
PeterVoronov / usbpower.pl
Created March 19, 2022 16:07 — forked from Krellan/usbpower.pl
This is a script that will reset a Linux USB serial tty device. Sometimes they get stuck with "unable to enable UART" error messages, this will help fix.
#!/usr/bin/perl -w
#
# USB Power
# Krellan
#
# This script will attempt to recover a misbehaving USB serial tty device,
# by unbinding/rebinding the USB hub(s) that are upstream from it.
# This should force the device to reset itself.
#
# Usage: usbpower.pl ttyUSB0
@PeterVoronov
PeterVoronov / DateFormat.js
Created July 23, 2021 15:49 — forked from eralston/DateFormat.js
Date Format 1.2.3 by Steven Levithan <stevenlevithan.com> - A date formatting library for JavaScript
/*
* Date Format 1.2.3
* (c) 2007-2009 Steven Levithan <stevenlevithan.com>
* MIT license
*
* Includes enhancements by Scott Trenda <scott.trenda.net>
* and Kris Kowal <cixar.com/~kris.kowal/>
*
* Accepts a date, a mask, or a date and a mask.
* Returns a formatted version of the given date.

Всем привет. Хочу поделиться полученными знаниями. Сразу спасибо Илье Кирову за наводку. Далее - за основу брал этот топик - Adapter debuggen mit VSCode.

Итак - идея - в wsl поставить линукс, в него иоброкер, но среду разработки и отладки использовать родную виндовую - vscode.

Теперь опишу по порядку:

  • Ставим wsl на Windows 10. Важно - ставим wsl 2, ибо рекомендуется vscode, да и некоторые фичи, как я понимаю именно версии 2 - необходимы.
@PeterVoronov
PeterVoronov / $ github_sync_masters.sh
Last active May 8, 2021 10:55
Bash script to sync upstream and origin masters locally
Markdown file for this gist
@PeterVoronov
PeterVoronov / acme-cert-dump-all.py
Created August 31, 2020 13:15 — forked from JayH5/acme-cert-dump-all.py
Dump all certificates from Traefik's acme.json to .pem files
#!/usr/bin/env python
import argparse
import base64
import json
import os
def main():
parser = argparse.ArgumentParser(
description="Dump all certificates out of Traefik's acme.json file")