Skip to content

Instantly share code, notes, and snippets.

@velzie
velzie / chromeos-117-sudo-howto.md
Last active May 31, 2025 16:54
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.

@sebjai
sebjai / OrderFlow.ipynb
Created September 26, 2019 21:39
Optimal trading with order-flow and short-term alpha
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Kerryliu
Kerryliu / ugreen_truenas_led.md
Last active May 31, 2025 16:44
TrueNAS UGREEN DXP4800 Plus Status LED Guide

UGREEN DXP4800 Plus TrueNAS Status LED Guide

20240609_035951642_iOS

The following is a quick guide on getting basic status LED functionality working with TrueNAS running on the UGREEN DXP4800 Plus. Theoretically, it should work on all models (with some small revisions to the script), but I only have a DXP4800 Plus. :)

This guide is for cron job that runs a script to update the LEDs every couple minutes, but I'm sure the following can be modified for blinky LEDs as well.

Steps:

@boxabirds
boxabirds / .cursorrules
Last active May 31, 2025 16:44
Rock solid: turn Cursor into a rock-solid software engineering companion
# Project Policy
This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices.
# 1. Introduction
> Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities.
## 1.1 Actors
@yetimdasturchi
yetimdasturchi / howto.md
Created May 31, 2025 15:06
Uzbekistan ID Card MRZ Parser

ID card parser

Compiling:

gcc id_card_parser.c -o passport_data

Usage:

@hmRemi
hmRemi / README.md
Last active May 31, 2025 16:37
Make Discord Server With Tags

Discord Guild ID Hash Targeter Script

Discord no longer provides the tags feature to new servers. This could change, so I'm keeping this active and seeking other ways to get a tag server. I still recommend trying create guilds within the specified hash ranges. Please support by starring this gist and joining our Discord (link below).

Also, selling a script for a fully customizable rotating clan tag. (colors and badge icon - join discord to buy)

Version: 1.2.5 (as per CONFIG.SCRIPT_VERSION in the script)
Discord: https://discord.gg/wSWYhQMdbA | @ziue
Telegram: https://t.me/reveredev/

@JimWolff
JimWolff / ps-to-bash-cheatsheet.md
Last active May 31, 2025 16:36
Powershell to bash equivalent Cheatsheet
PowerShell Command PowerShell Shorthand Bash Equivalent
Get-ChildItem -Path "/path/to/directory" -File -Force -Recurse gci -Path "/path/to/directory" -File -Force -Recurse ls -Rap /path/to/directory | grep -v /$
Select-String -Pattern "search-pattern" -Path "/path/to/files/*" sls "search-pattern" "/path/to/files/*" grep "search-pattern" /path/to/files/*
ForEach-Object { $_.Property } % { $_.Property } `
Get-Content -Path "/path/to/file" gc "/path/to/file" cat /path/to/file
Set-Content -Path "/path/to/file" -Value "content" sc "/path/to/file" "content" echo "content" > /path/to/file
New-Item -ItemType "file" -Path "/path/to/file" ni -ItemType "file" -Path "/path/to/file" touch /path/to/file
New-Item -ItemType "directory" -Path "/path/to/directory" ni -ItemType "directory" -Path "/path/to/directory" mkdir /path/to/directory
Remove-Item -Path "/path/to/file"
@mfd
mfd / GTWalsheimPro.css
Last active May 31, 2025 16:34
GT Walsheim Pro
@font-face {
font-family: GT Walsheim Pro;
src: local("GT Walsheim Pro Regular"),local("GTWalsheimProRegular"),url(GTWalsheimProRegular.woff2) format("woff2"),url(GTWalsheimProRegular.woff) format("woff"),url(GTWalsheimProRegular.ttf) format("truetype");
font-weight: 400;
font-style: normal
}
@font-face {
font-family: GT Walsheim Pro;
src: local("GT Walsheim Pro Bold"),local("GTWalsheimProBold"),url(GTWalsheimProBold.woff2) format("woff2"),url(GTWalsheimProBold.woff) format("woff"),url(GTWalsheimProBold.ttf) format("truetype");
import {
Operation,
Resource,
Context,
action,
resource,
spawn,
sleep,
main,
suspend as effectionSuspend,
@qfox
qfox / rutube-unsubscribe.js
Created December 24, 2022 16:47
Отписаться (удалить) от всех подписок на rutube (рутуб)
// Нужно открыть devtools в хроме или firefox, и скопировать туда полностью содержание файла
// Вспомогательная пауза для 429
const pause = delay => new Promise(resolve => setTimeout(resolve, delay));
// Забираем список на кого мы подписаны из ручки
const subscriptionReq = await fetch('https://rutube.ru/api/v1/subscription/cards/detail?limit=1000&offset=0', { credentials: 'include' });
const { results } = await subscriptionReq.json();
// Бежим подряд без параллелизма, рутуб всё равно ограничивает кол-во запросов с клиента, поэтому смысла ускорять нет, не даст быстрее