Skip to content

Instantly share code, notes, and snippets.

View OPerepadia's full-sized avatar

Oleksandr Perepadia OPerepadia

View GitHub Profile
@OPerepadia
OPerepadia / update_cmake_ubuntu.sh
Last active April 8, 2024 00:56
Update cmake on Ubuntu 16.04/18.04/20.04
#!/bin/bash
# Uninstall the default version of cmake
sudo apt remove cmake
sudo apt clean all
# Add Kitware apt repository
sudo apt install wget
wget -qO - https://apt.kitware.com/kitware-archive.sh | sudo bash
@OPerepadia
OPerepadia / openssh_on_windows.md
Created May 7, 2022 10:18
Install OpenSSH on Windows

Install OpenSHH on Windows

  1. Download and install latest OpenSSH-*.msi from here.
  2. Modify C:\ProgramData\ssh\sshd_config as follows
    PubkeyAuthentication yes
    #Match Group administrators
    #       AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
  3. Add your public key to C:\Users\\.ssh\authorized_keys.
@OPerepadia
OPerepadia / xiaomi-enable-mesh-telnet.py
Last active September 6, 2023 06:39 — forked from jmceleney/xiaomi-enable-mesh-telnet.py
Python3 file that enables netmode4 on a Xiaomi RB01 AX3200 router
import ssl
import socket
# This script simply replays one side of an intercepted conversation between two Xiaomi
# RB01 (International) AX3200 routers negotiating meshing.
# In effect the script poses as a mesh slave, which causes the mesh master to enable netmode4.
# Enabling netmode is needed as one step in unlocking the router and flashing OpenWrt.
# The router should already have been taken through basic set-up before running this script.
# Netmode4 can be confirmed with curl by requesting the following URL, where ${token} is the "stok"
# variable from your admin session: