Skip to content

Instantly share code, notes, and snippets.

View marques576's full-sized avatar
🎯
Focusing

Marques576 marques576

🎯
Focusing
View GitHub Profile
@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

@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 / 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 / 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