Skip to content

Instantly share code, notes, and snippets.

View marques576's full-sized avatar
🎯
Focusing

Marques576 marques576

🎯
Focusing
View GitHub Profile
@marques576
marques576 / readme.md
Created January 19, 2025 17:06
Test coral google coral tpu docker

How to install nvidia-legacy-340xx-driver on Debian 12 Bookworm

This guide will show you how to download, compile and install the nvidia-legacy-340xx-driver on Debian 12. Some people install the driver directly from sid but this will mix packages from both stable and unstable which may create issues. It's recommended to update and upgrade your system before you start.

Step 1. Download the source code.

Install these packages.

sudo apt install build-essential fakeroot devscripts

You can manually download the source code from debian.org and go to Step 2 or continue with Step 1. Don't worry you won't be able to install packages from sid.
Add 'deb-src http://httpredir.debian.org/debian unstable main non-free contrib' to '/etc/apt/sources.list'.

@marques576
marques576 / Disable NVIDIA GPU on debian.md
Last active September 7, 2024 14:47
Disable NVIDIA GPU on debian

Disable NVIDIA GPU on debian

sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
sudo update-initramfs -u
reboot
@marques576
marques576 / pdf_to_eps.bash
Created April 3, 2024 23:00
Convert all files in a dir from .pdf to .eps
for file in *.pdf; do
filename=$(basename "$file" .pdf)
pdf2ps "$file" "$filename.eps"
done
@marques576
marques576 / face-detection.py
Created September 13, 2022 15:16 — forked from hiorws/face-detection.py
Using python opencv to detect face and send the frames to FFmpeg to create HLS(HTTP Live Streaming)
import numpy as np
import cv2
import sys
cap = cv2.VideoCapture(0)
face_cascade = cv2.CascadeClassifier('<PATH_TO_CASCADES_FOLDER>/haarcascade_frontalface_default.xml')
while(True):
# Capture frame-by-frame
@marques576
marques576 / bcm4313.md
Last active January 11, 2024 21:33
WIFI Using Broadcom BCM4313 (Archlinux)

Wireless Connection Using Broadcom BCM4313 (Archlinux)

Check if you realy have a BCM4313

lspci -vnn -d 14e4:

If you have one listed install these packages (obs: if you have the lts kernel install linux-lts-headers instead).

sudo pacman -S broadcom_wl_dkms wpa_supplicant linux-headers
@marques576
marques576 / optimus710m.md
Last active May 25, 2022 23:02 — forked from fwyzard/optimus.md
Configure Optimus for Ubuntu

Install Nvidia Geforce 710m Drivers on Optimus Laptop

Disable GPU Manager

GPU Manager will overwrite the X configuration at each reboot, so the first step is to disable it.

According to various posts it can be disabled adding nogpumanager to the boot options e.g. in GRUB. Edit /etc/default/grub and add nogpumanager to the GRUB_CMDLINE_LINUX option.

For example, if /etc/default/grub had