Skip to content

Instantly share code, notes, and snippets.

View Sergeydigl3's full-sized avatar
๐Ÿ˜€

Sergey Latu Sergeydigl3

๐Ÿ˜€
View GitHub Profile
@afriza
afriza / proxmox-mikrotik.md
Last active May 7, 2025 01:16
install Mikrotik CHR on ProxMox Virtual Environment 8.3.0
  • create bridges for use by mikrotik CHR
  • create VM with VM ID 100 without any media (also delete existing scsi0 disk in the wizard)
ver=7.16.2
wget https://download.mikrotik.com/routeros/$ver/chr-$ver.img.zip
apt update
apt install unzip
unzip chr-$ver.img.zip
qemu-img resize -f raw chr-$ver.img 256M
# number 100 below is the VM ID
@verazuo
verazuo / cuda_11.7_installation_on_Ubuntu_20.04
Last active March 17, 2025 14:37 — forked from X-TRON404/cuda_11.7_installation_on_Ubuntu_22.04
Instructions for CUDA v11.7 and cuDNN 8.5 installation on Ubuntu 20.04 for PyTorch 1.12.1
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@francoism90
francoism90 / retrieve.py
Last active February 24, 2025 00:25
libtorrent - get seeds/peers + metadata without downloading (DHT/magnet)
#!/usr/bin/env python3
import libtorrent as lt
import time
import json
import os
def write_json(path, contents):
with open(path, 'w', encoding='utf-8') as f:
json.dump(contents, f, default=str, indent=4, sort_keys=True)