Skip to content

Instantly share code, notes, and snippets.

@lopestom
lopestom / 0. Android Firmware File Partition Description - devices
Last active August 1, 2025 05:07
Some information about firmware files
Some informations about partitions from Android devices.
@vejeta
vejeta / nvidia-340xx-fix-linux-6.3.patch
Created May 16, 2023 12:43
Tentative fix for nvidia-legacy-340xx-kernel-dkms 340.108-18 module for Linux 6.3.x
unchanged:
--- a/nv-mmap.c 2023-05-16 13:39:04.867479247 +0200
+++ b/nv-mmap.c 2023-05-16 13:47:10.858833967 +0200
@@ -312,7 +312,7 @@ int nvidia_mmap(
goto done;
}
- vma->vm_flags |= VM_IO;
+ vm_flags_set(vma, VM_IO);
}
@joanbm
joanbm / nvidia-470xx-fix-linux-6.3.patch
Created March 5, 2023 23:14
Tentative fix for NVIDIA 470.161.03 driver for Linux 6.3-rc1
From a77f2da778f4a62695a6c7d26bba674d59ad9170 Mon Sep 17 00:00:00 2001
From: Joan Bruguera <[email protected]>
Date: Sat, 25 Feb 2023 10:57:09 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.161.03 driver for Linux 6.3-rc1
---
common/inc/nv-linux.h | 13 +++++++++++++
nvidia-drm/nvidia-drm-gem-user-memory.c | 7 ++++---
nvidia-uvm/uvm.c | 2 +-
nvidia/nv-mmap.c | 12 ++++++------
define(["underscore", "jquery", "config/config"], function(e, t, n) {
function r(e, t) {
return i(e, null, null, !1, t)
}
function _(e, t, n, r) {
i(e, t, n, !0, r)
}
function i(e, r, _, i, s) {
@the-spyke
the-spyke / pipewire.md
Last active November 30, 2025 03:52
Enable PipeWire on Ubuntu 22.04

Enable PipeWire on Ubuntu 22.04

This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like pipewire-debian, you might get into conflicts.

Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.

Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.

Based on Debian Wiki, but simplified for Ubuntu 22.04.

@WhiteBlackGoose
WhiteBlackGoose / GenericTensor.md
Last active March 16, 2023 05:53
This is a short article about how I managed to implement basic generic tensor library

Generic tensor library in C# in a week

Hello!

For this article we take Tensor as a N-dimensional array whose last two axes might be interpreted as Matrix and/or the last axis might be interpreted as Vector. For TLDR the result is here.

What do we want?

  1. Tensors (N-dimensional storage)
  2. Implementation of methods and functions for working with tensors as with data storages
@solace
solace / edl2timeline.py
Last active April 5, 2022 08:25
Convert DaVinci Resolve marker edl to YouTube usable timeline
"""
Check out STEAM Powered (https://steampoweredshow.com/) where I have conversations
with women in STEAM to learn a bit about what they do and who they are.
https://www.steampoweredshow.com/learn-more
"""
from pprint import pprint
from collections import OrderedDict
import sys
import re
@hfutxqd
hfutxqd / OVERVIEW.TXT
Last active November 25, 2025 17:54
adb protocol
Implementation notes regarding ADB.
I. General Overview:
The Android Debug Bridge (ADB) is used to:
- keep track of all Android devices and emulators instances
connected to or running on a given host developer machine
- implement various control commands (e.g. "adb shell", "adb pull", etc.)
@mariodian
mariodian / zte-sms-control.sh
Created December 4, 2019 11:39
Read SMS on ZTE
#!/bin/bash
URL=http://192.168.0.1
REFERER="$URL/index.html"
URL_SET="$URL/goform/goform_set_cmd_process"
URL_GET="$URL/goform/goform_get_cmd_process"
CONTENT_PREVIEW_LENGTH=40
command -v jq >/dev/null 2>&1 || { echo >&2 "'jq' is required but not installed. Aborting."; exit 1; }
@johnnyasantoss
johnnyasantoss / DbusNotification.cs
Last active September 15, 2023 18:11
C# Desktop Notifications on Linux
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using Tmds.DBus;
[assembly: InternalsVisibleTo(Connection.DynamicAssemblyName)]
namespace dbus_test
{
/// <seealso>http://www.galago-project.org/specs/notification/0.9/x408.html</seealso>