Skip to content

Instantly share code, notes, and snippets.

View DianaNites's full-sized avatar

Diana DianaNites

View GitHub Profile
@velzie
velzie / chromeos-117-sudo-howto.md
Last active May 20, 2026 10:12
Re-Enable sudo from crosh on R117+ Chrome OS without recompiling

Short guide on how to bypass this:

image

If you haven't disabled rootfs verification, switch to vt-2 and run /usr/libexec/debugd/helpers/dev_features_rootfs_verification. Then reboot.

Inside crostini, download minioverride.c and compile it with gcc minioverride.c -o minioverride.so -shared (make sure gcc is installed)

In the files app, move minioverride.so into your downloads folder.

@shinyquagsire23
shinyquagsire23 / gist:ab6f7c0f9b6514b6b54d69b9a57646be
Created July 26, 2023 20:24
Enabling USB device mode on Intel devices (Tweet archive)
https://twitter.com/ShinyQuagsire/status/1536432635643211777 12:37 PM · Jun 13, 2022
-----
I figured out how to enable USB device mode on my XPS 13 (9350) 🎉
Though for some ungodly reason, it uses the right-side full USB port. So a crossover cable is required.
-----
https://twitter.com/ShinyQuagsire/status/1536434057671716864 12:43 PM · Jun 13, 2022
-----
@Spottedleaf
Spottedleaf / Starlight 1.20.md
Last active August 25, 2026 09:49
The future of the Starlight mod

In 1.21?

Moonrise contains Starlight as well as a lot of server-side optimisations.

Final change of plans (March 8, 2024)

I don't see that many people are using Starlight on modern versions anymore. As such, I don't see any reason to continue to maintain the mod versions, given that they do have real mod conflict issues with other mods. Starlight is also not neccessary to use on 1.20.x anyways.

@n3rdopolis
n3rdopolis / kerneltester.sh
Created April 29, 2023 01:42
Build a Linux kernel with a initrd, to test it and its modules in QEMU with a test script
#! /bin/bash
mkdir -p /var/cache/kerneltest
#Make a file system image for the VM, and mount it.
if [[ -e /var/cache/kerneltest/fs.img ]]
then
rm /var/cache/kerneltest/fs.img
fi
truncate -s 2G /var/cache/kerneltest/fs.img
mkfs.ext4 /var/cache/kerneltest/fs.img
// cc $(pkg-config --cflags --libs libudev) udev_find_serial_by_vid_pid.c -o udev_find_serial_by_vid_pid
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libudev.h>
int main(int argc, char **argv)
{
if (argc != 3) {
@DavidBuchanan314
DavidBuchanan314 / widevine_fixup.py
Last active April 3, 2026 23:35
Patch aarch64 widevine blobs from ChromeOS to work on non-ChromeOS linux, including platforms with 16K page size like Apple Silicon / Asahi Linux
"""
MIT License
Copyright (c) 2023 David Buchanan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
// ==UserScript==
// @name Disable arrow key hijacking
// @description Stop websites from hijacking left and right arrow keys.
// @author Lionel Rowe
// @run-at document-start
// @match http://*/*
// @match https://*/*
// @grant none
// @version 0.3
// @namespace https://github.com/lionel-rowe
@jkap
jkap / prechoster-ask-format.json
Last active March 31, 2023 13:34
jae's ask formatter
{"modules":[{"id":"396b4e1b035c1577","data":{"contents":"I'm putting a question here!","language":"text"},"pluginId":"source.text","sends":[],"namedSends":{"152aae77d0e8a772":["ask"]},"graphPos":null},{"id":"59714cceb7682bd0","data":{"contents":"That's great! here's an answer!\n\n<b>You can use HTML here too!</b>\n\nDon't forget to change your retrospring URL at the bottom!","language":"html"},"pluginId":"source.text","sends":[],"namedSends":{"152aae77d0e8a772":["answer"]},"graphPos":null},{"id":"152aae77d0e8a772","data":{"contents":"<script>\n import ask from \"./ask\";\n import answer from \"./answer\";\n import retrospringUrl from \"./retrospringUrl\";\n</script>\n\n<div class=\"background\">\n <div class=\"container\">\n <div class=\"ask-section\">\n <div class=\"ask-container\">\n <span class=\"attribution\"\n ><strong>Anonymous</strong>\n <!-- -->asked:</span\n >\n <div class=\"ask\">{ask}</div>\n <div class=\"arrow\"></div>\n </div>\n
@lunadialsys
lunadialsys / gshade_to_reshade_guide.md
Last active June 18, 2026 11:13
GShade -> ReShade migration guide for FFXIV

How To Move To ReShade From GShade

(a guide by sylvie (@lostkagamine). tested, should work fine.)

(Korean version / 한국어 버전 / Chinese version / 中文版)

New: FAQ has been updated for ReShade 5.7.0 features.

If you are having issues like the screen turning black, read the mini-FAQ at the bottom of this document!

0. Don't uninstall GShade yet!

@Th3Un1q3
Th3Un1q3 / FLIPPER_TRACK_API_RELEASING.md
Last active May 25, 2026 12:09
The Hitchhiker's Guide to the Flipper Releasing

The Hitchhiker's Guide to the Flipper Releasing 📕

The purpose of this document is to simplify development for Flipper Zero platform.

It's my cure from oh, great, now I have to rebuild my app. Again...

DON'T PANIC!