Skip to content

Instantly share code, notes, and snippets.

View brccabral's full-sized avatar
🐔
Vamos, Galo! Ganhar o Brasileiro!

Bruno Cabral brccabral

🐔
Vamos, Galo! Ganhar o Brasileiro!
View GitHub Profile
@brccabral
brccabral / 01_README.md
Last active April 7, 2024 18:24
Pihole
@brccabral
brccabral / 01_README.md
Last active October 21, 2023 02:33
Screen Capture

Screen Capture

C++

Linux

Get the pixels from X11 display and open the image in OpenCV window. Wayland yet to find out.

apt install libopencv-dev
@brccabral
brccabral / 01_README.md
Last active October 17, 2023 17:18
Keystroke

Keystroke

C++

Linux

Send a keystroke to focused window.
Compile with -lX11 -lXtst

Python

@brccabral
brccabral / webcam_capture.cpp
Last active May 12, 2023 22:24 — forked from mik30s/webcam_capture.cpp
Simple C++ program to capture a webcam frame in Linux
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <linux/ioctl.h>
#include <linux/types.h>
#include <linux/v4l2-common.h>
#include <linux/v4l2-controls.h>
#include <linux/videodev2.h>
#include <fcntl.h>
#include <unistd.h>
@brccabral
brccabral / 01_README.md
Last active September 27, 2023 18:10
Yaru theme

Yaru theme

Build from source

sudo apt install meson sassc pkg-config libglib2.0-dev
cd $HOME
@brccabral
brccabral / 01_README.md
Last active October 27, 2023 04:14
Boot Windows from Linux using QEMU

Boot Windows from Linux using QEMU

Option 1: install from package repository

Installing virt-manager will install qemu as dependency.

sudo apt install virt-manager

I had to restart Ubuntu to get virtd privilegies.

Option 2: Compile QEMU

@brccabral
brccabral / Keystore.md
Last active March 31, 2023 21:15
Keystore
@brccabral
brccabral / 01_Apache2HTTPdProxyServer.md
Last active October 29, 2024 18:09
Apache2 HTTPd Proxy Server and LDAP

Apache2 HTTPd

Proxy Server

Apache httpd server is listening 8081 (not default https port, I know) and another webserver is listening 8000.

Edit file D:\Apache24\conf\httpd.conf.

Enable these modules

@brccabral
brccabral / 01_README.md
Last active February 19, 2023 09:53
Xwayland XFCE Android Termux-X11, no VNCserver