Skip to content

Instantly share code, notes, and snippets.

View lucasmz-dev's full-sized avatar

Lucas lucasmz-dev

  • 2804::/16
  • 12:13 (UTC -03:00)
View GitHub Profile
@lucasmz-dev
lucasmz-dev / librewolf.overrides.cfg
Created August 25, 2024 22:12
My LibreWolf overrides
// Format: pref("", true)
// TLS:
// Enable Kyber
pref("security.tls.enable_kyber", true);
pref("network.http.http3.enable_kyber", true);
// Fix CRLite
pref("services.settings.server", "https://firefox.settings.services.mozilla.com/v1"); // CRLite needs this enabled, also fixes language downloads
pref("security.pki.crlite_mode", 2); // Prefer CRLite over OCSP
@lucasmz-dev
lucasmz-dev / seedvault-syncthing.md
Last active July 14, 2024 02:57
Seedvault with Syncthing

Seedvault + Syncthing = ⁉️

I just tested using Seedvault with Syncthing and to me it feels like a great setup. I still need to configure it for all time use, but so far, first test seems like everything works fine. It allows me to use a connected service where my data isn't just one place, without needing physical things like a USB flash drive, etc, but without needing to pay for the cloud, and dealing with bad speeds, especially with something that can be as demanding as device backups.

Downsides

  • Your device essentially has half the storage, since you'll need to keep your backups inside your phone, so there's redundant data there.
  • This is not a fully tested setup, and you may lose data with it.
@lucasmz-dev
lucasmz-dev / fedora_android-tools-udev-rules.md
Last active December 6, 2025 10:30
Installing android-tools in Fedora

How to properly install android-tools in Fedora

Currently, it seems as if Fedora doesn't install udev-rules, to get this working, I've had to manually install them from a community project. I'm not very knowledgable in Linux, these are just the steps I had to do to get things working that I'd like to document.

Install android-tools

Install android-tools from DNF.

sudo dnf install android-tools
@lucasmz-dev
lucasmz-dev / calyxos_motog_return-to-stock.md
Last active November 22, 2025 20:52
How to return back to stock software in Motorola devices on Linux

I am not responsible for any type of damage when you follow this tutorial. You have been warned.

This tutorial was originally designed for the devices: moto g32, g42, and g52. It should also work for the moto g34/45, g84, and g 5g 2024.

Device codenames

It is important to note that these devices are usually referenced using codenames in multiple places, it is important to know which one is yours.

  • g32: devon
@lucasmz-dev
lucasmz-dev / 8907XX-SW-MAIN-XX6500SS5300S615-VS.367_USB.md
Last active November 2, 2025 19:03
Atualização TCL S6500 32" V367 em protocolo BitTorrent (em forma de torrent) para maior velocidade e arquivamento
@lucasmz-dev
lucasmz-dev / fixing_bluetooth_clipping.md
Last active December 17, 2021 19:07
Fixing Bluetooth earphones audio clipping on TVs (and other devices, phones, tablets...)

You might have bought Bluetooth earphones, and while they might work on your modern phone, they seem to not work properly on your TV... or older phone... or any other Bluetooth transmitting device!

I bought Redmi Airdots 1 year ago, and while it would work just fine on my phone, it would have clipping with my TV, so I wasn't able to watch VSauce on it.

A while after, I would notice not-so-modern phones would have the same issue.

Cause

@lucasmz-dev
lucasmz-dev / ExitThread.luau
Last active December 2, 2021 00:30
Exit implementation in Luau (task. required)
--[=[
A function which makes it so that the current thread is interrupted, and causes an error when on an attempt to resume it.
@yields
]=]
local function exit()
task.defer(
coroutine.close,
coroutine.running()
)
@lucasmz-dev
lucasmz-dev / SimpleSignal.lua
Created November 20, 2021 00:33
SimpleSignal
export type ScriptSignal = {
_active: boolean,
_head: ScriptConnection?,
IsActive: (ScriptSignal) -> boolean,
Connect: (
ScriptSignal,
handler: (...any) -> ()
) -> ScriptConnection,
Wait: (ScriptSignal) -> (...any),
@lucasmz-dev
lucasmz-dev / BindToClose.lua
Last active November 16, 2021 02:53
Proper BindToClose implementation
--[[
A custom BindToClose implementation which fixes these issues:
* Has a :Disconnect method
* Listeners run in a different order:
Which is: First connected -> Last connected
This order fixes a lot of hidden issues, particularly with requiring.
]]