Skip to content

Instantly share code, notes, and snippets.

@mihirk284
mihirk284 / Install_OpenCV4_CUDA10.md
Last active June 20, 2023 21:06 — forked from raulqf/Install_OpenCV4_CUDA11_CUDNN8.md
How to install OpenCV 4.4 with CUDA 11.3 in Ubuntu 20.04

How to install OpenCV 4.4.0 with CUDA 11.3 in Ubuntu distro 20.04

First of all install update and upgrade your system:

    sudo apt update
    sudo apt upgrade

Then, install required libraries:

@plembo
plembo / RPIwithQEMU.md
Last active July 10, 2024 01:59
Emulating a Raspberry Pi with QEMU

Emulating a Raspberry Pi with QEMU

Goal: Emulate a Raspberry Pi with QEMU in order to run the Raspbian O/S (based on Debian Linux).

The current setup is not ideal. For one thing, the maximum RAM allowed using the "versatile-pb" firmware is 256 Mb. In addition, only the most basic peripherals, a keyboard and mouse, are supported.

A number of articles have been written on this topic. Most are outdated, and the few recent ones are missing key information.

@AkdM
AkdM / Edit_Repack_ISO_tutorial.md
Last active June 15, 2024 14:40
Edit and repack .iso bootable image

On Linux

Installing mkisofs

apt-get install mkisofs

Editing ISO image

mkdir /tmp/custom_iso

@johnliu55tw
johnliu55tw / asyncio_socket_server.py
Last active June 25, 2024 07:53
Python asyncio socket server template
import asyncio
import logging
# XXX: REMOVE THIS LINE IN PRODUCTION!
logging.basicConfig(format='%(asctime)s %(lineno)d %(levelname)s:%(message)s', level=logging.DEBUG)
logger = logging.getLogger(__name__)
# Connected client records
clients = dict()
@Jekins
Jekins / Markdown-docs.md
Last active July 27, 2024 15:47
Руководство по оформлению Markdown файлов

Руководство по оформлению Markdown файлов

Markdown - это облегчённый язык разметки, который преобразует текст в структурированный HTML. Следующее руководство поможет вам разобраться, как использовать Markdown.

Заголовки

# Заголовок первого уровня
## Заголовок второго уровня
### Заголовок третьего уровня
#### Заголовок четвёртого уровня
##### Заголовок пятого уровня
@Iman
Iman / clean.sh
Last active July 22, 2024 18:04
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs