Skip to content

Instantly share code, notes, and snippets.

@Miouyouyou
Miouyouyou / nvidia.patch
Created September 28, 2020 00:03
Patch for NVIDIA GRID K2 drivers on Linux CentOS 8
From 4e935ec45deae81cdf800faba14c768d0dff3499 Mon Sep 17 00:00:00 2001
From: Miouyouyou <myy@miouyouyou.fr>
Date: Sun, 27 Sep 2020 19:41:12 +0200
Subject: [PATCH] Make the drivers compile with 4.18 kernels on Cent OS 8
What a mess. There's basically a ton of little
modifications here and there.
Since the patch was created at 1 AM, I'll just put
this link as a reference. Just use Google Translate, or
@Miouyouyou
Miouyouyou / Dockerfile
Last active September 24, 2020 23:37
Anvil app server with Docker
FROM python:3
RUN useradd --create-home --shell /bin/bash applauncher
WORKDIR /usr/src
RUN pip install anvil-app-server
RUN apt update
RUN apt -y install openjdk-11-jdk
* Hub client
* Janus
* Reticulum
* COTURN
And their dependencies (postgresql, SSL certs, ...)
@Miouyouyou
Miouyouyou / helpers.js
Created September 5, 2020 07:20
Javascript blob to base64
/** Get a base64 string representing the content of the provided Blob
*
* @param blob
* The blob object
*
* @param cb
* A callback called with the base64 string on success
*
* @return undefined
*
From 48646460655b36cb616c7ad05f66f63631bfe1d8 Mon Sep 17 00:00:00 2001
From: "Miouyouyou (Myy)" <myy@miouyouyou.fr>
Date: Fri, 14 Aug 2020 09:27:49 +0200
Subject: [PATCH] drivers: staging: rtl8723bs: Initialize structures correctly
This avoids a BUG when freeing the ressources in nl80211_send_station .
Signed-off-by: Miouyouyou (Myy) <myy@miouyouyou.fr>
---
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 2 +-
@Miouyouyou
Miouyouyou / helpers.py
Last active August 8, 2020 16:37
Python : URI file:// to OS path
from urllib.parse import unquote_plus, urlparse # Helps convert file:// URI to PATH URI
import pathlib
def file_uri_to_os_path(uri):
u = urlparse(uri)
p = unquote_plus(u.path)
return pathlib.Path(u.netloc, p)
@Miouyouyou
Miouyouyou / test.c
Created July 17, 2020 03:47
GCC pragma error
#define GPIO_BLARGH _Pragma("GCC error \"This is not the GPIO you're looking for\"") 0
#define GPIO_0 GPIO_BLARGH
int main() { return GPIO_0; }
@Miouyouyou
Miouyouyou / 0003-arm-dtsi-rk3288-add-GPU-500-Mhz-OPP-again.patch
Created July 3, 2020 17:01
Get back 500Mhz freqs on Mali GPU when using RK3288 boards
From 73258d32daf3a661281bb5c77c5e2e06c7ff714e Mon Sep 17 00:00:00 2001
From: "Miouyouyou (Myy)" <myy@miouyouyou.fr>
Date: Fri, 3 Jul 2020 02:02:18 +0200
Subject: [PATCH] arm: dtsi: rk3288: add GPU 500 Mhz OPP again
Undoing the very bizarre mainline kernel patch,
75481833c6dbab4c29d15452f6b4337c16f5407b
which main purpose is to sync some 3.14 kernels hacks to
mainline kernels, for reasons that only matter for a few Chromebooks,
and shove it down the throat of every RK3288 user.
From d0bc59667cc10fe9938928fd426ee96805497282 Mon Sep 17 00:00:00 2001
From: "Miouyouyou (Myy)" <myy@miouyouyou.fr>
Date: Sat, 9 May 2020 18:07:33 +0200
Subject: [PATCH] Dumping validated modes for testing purposes
In order to pinpoint why some people still not have 4K res enabled.
Signed-off-by: Miouyouyou (Myy) <myy@miouyouyou.fr>
---
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 74 ++++++++++++++++++++-
@Miouyouyou
Miouyouyou / docker-compose.yml
Last active April 28, 2020 12:02
Fichier Docker-compose pour Mattermost avec config d'un Reverse Proxy HAProxy en prime
version: '2.4'
# Le réseau rproxy_network est un réseau créé via :
# docker network create rproxy_network
# (Au moins) Un reverse proxy est censé être connecté au réseau
# rproxy_network.
# Ce proxy va gérer les certificats SSL et rediriger les connexions
# vers le serveur de chat Mattermost, accessible depuis l'adresse
# 'mattermost:8065' sur le même réseau.