Skip to content

Instantly share code, notes, and snippets.

View Nriver's full-sized avatar
😶‍🌫️
relax

Nate River Nriver

😶‍🌫️
relax
View GitHub Profile
@Nriver
Nriver / clear.py
Created September 25, 2025 02:13
Clear github hidden notifications
import urllib.request
import json
# ⚠️ Replace this with your GitHub personal access token (must include notifications scope)
GITHUB_TOKEN = "your_personal_access_token_here"
BASE_URL = "https://api.github.com"
HEADERS = {
"Authorization": f"Bearer {GITHUB_TOKEN}",
"Accept": "application/vnd.github+json",
@ReinforceZwei
ReinforceZwei / calendarSundayFirst.js
Created December 21, 2023 02:55
Trilium Calendar: Set Sunday as first weekday
// Move "SUN" to first day of week
$('.calendar-week').children().last().prependTo('.calendar-week')
let marginStep = 14.28;
let config = {
childList: true,
subtree: true
}
let callback = (mutationList, observer) => {
@eusonlito
eusonlito / oppo-coloros-bloatware-disable
Last active September 16, 2025 15:36
Disable and Enable Oppo ColorOS bloatware. AVOID TO UNINSTALL PACKAGES OR YOUR PHONE CAN BE BRICKED ON FUTURE UPDATES.
pm disable-user --user 0 com.caf.fmradio
pm disable-user --user 0 com.coloros.activation
pm disable-user --user 0 com.coloros.activation.overlay.common
pm disable-user --user 0 com.coloros.alarmclock
pm disable-user --user 0 com.coloros.appmanager
pm disable-user --user 0 com.coloros.assistantscreen
pm disable-user --user 0 com.coloros.athena
pm disable-user --user 0 com.coloros.avastofferwall
pm disable-user --user 0 com.coloros.backuprestore
pm disable-user --user 0 com.coloros.backuprestore.remoteservice
@FreddieOliveira
FreddieOliveira / docker.md
Last active October 25, 2025 08:17
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@kaisermann
kaisermann / dependency-mess.md
Created July 3, 2020 19:34
How to check what direct dependency of your project has a specific package in its dependency tree

The modern web package ecosssystem is overloaded with packages and it's very easy to forget that each dependency of our project can have tons of other dependencies.

Sometimes you get an error in a file of a dependency that you've never heard of and it's not listed in your package.json. How can we find the direct dependency of our project that has, down its tree, this elusive dependency?

@UrsaDK
UrsaDK / Caching multi-stage builds in GA.md
Last active January 21, 2025 12:06
Speed up your multistage builds in GitHub Actions

Caching multi-stage builds in GitHub Actions

Caching Docker builds in GitHub Actions is an excellent article by @dtinth which analyses various strategies for speeding up builds in GitHub Actions. The upshot of the article is a fairly decisive conclusion that the best two ways to improve build times are:

  1. Build images via a standard docker build command, while using GitHub Packages' Docker registry as a cache = Longer initial build but fastest re-build times.

  2. Build your images via docker integrated BuildKit (DOCKER_BUILDKIT=1 docker build), while using a local registry and actions/cache to persist build caches = Fastest initial build but slightly longer re-build times.

The problem

@marcorichetta
marcorichetta / postgresql-manjaro.md
Last active May 20, 2025 19:44
Install PostgreSQL on Manjaro and set it up for Django
@jfcherng
jfcherng / st4-changelog.md
Last active May 30, 2025 15:19
Sublime Text 4 changelog just because it's not on the official website yet.
@mrzapp
mrzapp / docker-compose.yml
Last active February 10, 2025 16:21
NextCloud setup for Docker (docker-compose) with Collabora, NGINX, Redis and Postgres
version: "3.4"
networks:
example-com--postgres: ~
example-com--redis: ~
services:
# PostgreSQL
postgres:
container_name: example-com--postgres
@KCCat
KCCat / mpv-mvtools-blksize64.py
Last active October 16, 2025 12:15
mpv-mvtools.vpy
import vapoursynth as vs
core = vs.core
clip = video_in
vfps = int(container_fps*1e8)
dfps = 60000
#dfps = 0
def ffps(fps):
rfps = int('%.0f' % fps)
if ( abs(fps - (rfps/1.001)) < abs(fps - (rfps/1.000)) ):