Skip to content

Instantly share code, notes, and snippets.

View AFCMS's full-sized avatar
🎯
Focusing

AFCMS

🎯
Focusing
View GitHub Profile
@AFCMS
AFCMS / luajit.Dockerfile
Last active April 25, 2024 12:58
LuaJIT Docker Image (Alpine Clang Musl)
# syntax=docker/dockerfile:1
FROM --platform=$BUILDPLATFORM tonistiigi/xx AS xx
FROM --platform=$BUILDPLATFORM alpine:3.19 AS dev
COPY --from=xx / /
WORKDIR /usr/src/LuaJIT
RUN apk add --no-cache \
@AFCMS
AFCMS / input.cpp
Last active April 23, 2024 09:10
Arduino Input System
/*
SPDX-FileCopyrightText: 2024 AFCMS <afcm.contact@gmail.com>
SPDX-License-Identifier: GPL-3.0-or-later
*/
#include <Arduino.h>
#include "input.hpp"
namespace utils
{

Video on a SSD1306 Oled display driven by the ESP32-WROOM-32

Getting the video

First, you need a video to display.

In my case, I wanted to display a video available on YouTube, so I used the Parabolic GUI for the yt-dlp project, which allows downloading videos from YouTube and other video streaming services.

Important

Please keep in mind you may not have the right to include a video in your project.

@AFCMS
AFCMS / quoicoubeh.user.js
Last active May 4, 2024 12:33
Quoicoubeh Tampermonkey Userscript
// ==UserScript==
// @name Quoicoubeh
// @namespace http://tampermonkey.net/
// @version 2024-01-04
// @description Extend any word ending by quoi with quoicoubeh.
// @author AFCM + ChatGPT
// @match *://*/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant none
// ==/UserScript==

Primary work:

  • credits templates
  • thumbnails
  • final montage
  • music

Features:

  • Lanterns
  • Composters
@AFCMS
AFCMS / qteps2.py
Last active May 19, 2022 15:12
QT-EPSILON
#####################################################
# QT_EPSILON #
# GUI Framework for the Numworks calculator #
# By AFCMS, under GPLv3 #
#####################################################
"""
This Framework is inspired by QT design and aims to simplificate the process of creation of basic GUIs
WARNING: This script is very big, so make sure to leave enough space for it
@AFCMS
AFCMS / zsh-minetest-completion
Last active April 21, 2022 15:03
Minetest ZSH Completion
#compdef minetest
local curcontext="$curcontext" state line
typeset -A opt_arg
_arguments -s -C \
'--address[Address to connect to]:url:_urls'\
'--color[Coloured logs]:type:(always never auto)'\
'--config[Load configuration from specified file.]:file:_files -g *.conf'\
'--gameid[Set gameid]'\
'--go[Disable main menu]'\
'--help[Show allowed options]'\