Skip to content

Instantly share code, notes, and snippets.

// This a quick and dirty variation around the code provided here by @rsta2 : https://github.com/rsta2/circle/discussions/567#discussioncomment-13051923
// Build it with : gcc -o audio2ascii audio2ascii.c
// Run it without arguments to see usage.
// See here for more details : https://github.com/rsta2/circle/tree/master/sample/12-pwmsound
#include <stdio.h>
#include <string.h>
int main (int argc, char* argv[])
@ABelliqueux
ABelliqueux / rpi_usb_webcam_serial.md
Created March 14, 2025 15:29
Plug-and-play Raspberry Pi USB webcam with serial

Plug-and-play Raspberry Pi USB webcam with serial

This is a refinement of the tutorial available here :

https://www.raspberrypi.com/tutorials/plug-and-play-raspberry-pi-usb-webcam/

It adds a serial device with autologin, that you can then connect to while the camera is running and use v4l-ctl to change the picture settings.

Follow the instructions on the link above, but use this script instead for .rpi-uvc-gadget.sh:

# /etc/extra-threatblock/external-threatblock.exceptions
# Extra Threatblock: A threat intelligence script by r00igev@@r/mybroadband
100.64.0.0/10
1.1.1.0/24
@ABelliqueux
ABelliqueux / DVC90_linux.md
Last active April 22, 2023 14:11
Digitize SECAM/PAL VHS video and sound with Dazzle DVC90/110 under Linux

Digitize SECAM/PAL VHS video and sound with Dazzle DVC90/110 under Linux

Abstract

Although this device is well recognised under Linux, most software will only have the video working (guvcview, obs, etc. ). Recording both video and audio can be done through VLC though, by specifying v4l2 options.

The device

The device is a Pinnacle Dazzle DVC90 and is using the em28xx driver.

@ABelliqueux
ABelliqueux / OpenTuna.md
Last active January 26, 2023 15:29
DEMYSTIFYING PS2 FORTUNA THROUGH OPENTUNA by alexparrado
@ABelliqueux
ABelliqueux / linux_ps2.md
Last active December 25, 2024 22:33
How to install Linux on the Playstation 2

Adapted to gist from https://unix.stackexchange.com/questions/344225/how-to-install-linux-on-the-playstation-2
Credits to Alison E.E.

Preambule

Looking to learn about game development? Are you a Linux enthusiast looking to test the claim that "Linux runs on everything"? Perhaps you are a software developer who is looking to release for multiple architectures, and you don't have another MIPS Little Endian machine on-hand for testing your programme. Whatever your situation there are a surprising number of reasons to install Linux on a Playstation 2, even sixteen years after it's release (boy do I feel old all of a sudden.), yet an equally surprising lack of documentation about it or how to install it.

Now don't get me wrong, if you want to use the original Sony Linux Kit, or one of it's updated open source releases on a fat PS2 with a network adapter and an IDE hard disk you can find plenty of info. However th

@ABelliqueux
ABelliqueux / use_laptop_2nd_display_linux_freerdp.md
Last active December 16, 2022 16:17
Use a laptop as a 2nd display on Linux using FreeRDP

Mirror of https://blog.jacobstoner.com/use-a-laptop-or-tablet-as-a-2nd-display-on-linux-with-a-dummy-monitor-and-rdp/

Dual monitors using a laptop as a second display. This guide assumes that you are using a Debian based distro (X11 only). Both devices must be connected to the same network.

1. Define an output to be a used as a dummy monitor

a. The simple method: select an unused existing graphics port

# find an unused output
find -L /sys/class/drm -maxdepth 1 -type d -name 'card0-*' -exec sh -c 'if [ $(cat $0/status) = "disconnected" ]; then echo $0; fi' {} \;|cut -c22-|sort
@ABelliqueux
ABelliqueux / PKGBUILD
Created August 23, 2022 14:18
!Experimental! PKGBUILD for tahoma2d with new binaries names
# Maintainer: Fabio 'Lolix' Loli <[email protected]> -> https://github.com/FabioLolix
# Contributor: Campbell Barton <[email protected]>
export GIT_LFS_SKIP_SMUDGE=1
pkgname=tahoma2d
pkgver=1.3
pkgrel=1
pkgdesc="Software for producing a 2D animation"
arch=(x86_64)
@ABelliqueux
ABelliqueux / PKGBUILD
Created April 1, 2022 15:01
AUR-quickbms-11.0-PKGBUILD
# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz>
pkgname=quickbms
pkgver=0.11.0
pkgrel=1
pkgdesc="Files extractor and reimporter, archives and file formats parser, advanced tool for reversers and power users and much more."
url="http://aluigi.altervista.org/quickbms.htm"
arch=('x86_64' 'i686')
license=('GPL2')
depends_i686=('lzo' 'bzip2' 'zlib' 'openssl')
@ABelliqueux
ABelliqueux / fixbuild.patch
Created April 1, 2022 13:57
AUR-java8-openjfx-fixbuild.patch
--- rt-8u202-ga/build.gradle 2018-12-10 17:30:22.000000000 +0100
+++ rt-8u202-ga/build1.gradle 2022-04-01 15:47:37.791321075 +0200
@@ -737,24 +737,10 @@
// Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
//
// We need to parse the second line
-def inStream = new java.io.BufferedReader(new java.io.InputStreamReader(new java.lang.ProcessBuilder(JAVA, "-version").start().getErrorStream()));
-try {
- if (inStream.readLine() != null) {
- String v = inStream.readLine();