Skip to content

Instantly share code, notes, and snippets.

View alryaz's full-sized avatar
🤖
Doing PhD rn

Ryazanov Alexander Mihailovich alryaz

🤖
Doing PhD rn
View GitHub Profile
@alryaz
alryaz / link_monitor.pyw
Created October 12, 2023 09:40
Show Zoom URL QR code when meeting is initialized
@alryaz
alryaz / ipmi-updater.py
Created October 2, 2023 17:10 — forked from arnebjarne/ipmi-updater.py
Supermicro IPMI certificate updater
#!/usr/bin/env python3
# vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 filetype=python
# This file is part of Supermicro IPMI certificate updater.
# Supermicro IPMI certificate updater is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
@alryaz
alryaz / ipmi-updater.py
Created September 8, 2023 03:55 — forked from mcdamo/ipmi-updater.py
Supermicro IPMI certificate updater
#!/usr/bin/env python3
# vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 filetype=python
# This file is part of Supermicro IPMI certificate updater.
# Supermicro IPMI certificate updater is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
@alryaz
alryaz / Shadow local session.bat
Last active October 13, 2020 15:11
RD shadowing session selection command-line script (infused with admin requirement)
REM --add the following to the top of your bat file--
@echo off
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SystemRoot%\System32\cacls.exe" "%SystemRoot%\System32\config\system"
@alryaz
alryaz / gist:a40861be9f9952f0876668fdb495fa49
Created September 21, 2020 20:26
Tasmota template: SS-8839-02 (ALTERNATIVE)
{"NAME":"SS-8839-02-ALT","GPIO":[0,255,0,255,21,0,0,0,17,52,0,53,0],"FLAG":0,"BASE":18}
@alryaz
alryaz / homeassistant_component_manifest_schema.json
Last active June 22, 2020 23:40
Home Assistant Component Manifest Schema (WIP)
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://example.com/example.json",
"type": "object",
"title": "The root schema",
"description": "The root schema comprises the entire JSON document.",
"default": {},
"examples": [
{
"domain": "hue",
@alryaz
alryaz / MiScale_Test.py
Last active August 18, 2019 16:07
First attempt at developing homeassistant-discoverable MiScale integration
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import binascii
import time
import os
import csv
import sys
import json
@alryaz
alryaz / Raspberry Pi L2TP VPN Setup Scripts.md
Last active October 1, 2016 00:23 — forked from jhenkens/Raspberry Pi L2TP VPN Setup Scripts.md
RPi SoftEther Installer | v4.20-9608-rtm-2016.04.17

Install raspbian, set up your users however you would like, so long as you have sudo access on the user you are running this with. You probably want to resize the image so it fills the SD card as well.

  1. Copy this entire gist to your raspberry pi
  2. Do chmod +x step1.sh step2.sh iptables.sh in the gist folder (so that
  3. Run step1.sh a) This script does a few things - it first updates your raspberry pi, then it installs a few needed utilities, then it upgrades the firmware on your