Skip to content

Instantly share code, notes, and snippets.

View unixfox's full-sized avatar

Émilien (perso) unixfox

View GitHub Profile
@unixfox
unixfox / README.md
Created May 27, 2025 16:45
I'm leaving the SearXNG project.

Back in April 2021, after a lot of organizational issues regarding the code-review process within the SearX project. Alex (dalf) and I forked the project to create SearXNG. We got Markus (return42), who also wanted to join along for the ride, he was also an active SearX contributor.

The gain of popularity of the project was slow but steady, we positioned ourselves by saying we are a more actively maintained version of SearX because we fixed the engines faster than SearX (core feature of SearX(NG)). We even got ourselves a section in SearX readme about a controversial difference between SearX and SearXNG.

I won't lie, being a maintainer of both project, has

// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
package cli
import (
"bufio"
"bytes"
"context"
"encoding/binary"
@unixfox
unixfox / log.json
Last active May 9, 2025 21:52
debug_log using tailscale debug watch-ipn --show-private-key=true --initial=true
{
"Version": "1.83.0-dev20250509-tcb6fc37d6-dirty",
"SessionID": "thaew2Ohbe2Botha",
"ErrMessage": null,
"LoginFinished": null,
"State": 0,
"Prefs": {
"ControlURL": "https://controlplane.tailscale.com",
"RouteAll": false,
"ExitNodeID": "",
import type { WebPoSignalOutput } from 'bgutils';
import { BG, buildURL, GOOG_API_KEY, USER_AGENT } from 'bgutils';
import { Innertube, YT, YTNodes, UniversalCache } from 'youtubei.js';
import { JSDOM } from 'jsdom';
const userAgent = USER_AGENT;
// @NOTE: Session cache is disabled so we can get a fresh visitor data string.
const innertube = await Innertube.create({
user_agent: userAgent,
@unixfox
unixfox / test-403.js
Last active March 2, 2025 20:28
test 403 invidious companion
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function fetchVideos(videos: { videoId: any }[]) {
for (const video of videos) {
const urlVideo = await fetch(
`http://localhost:8282/latest_version?id=${video.videoId}&itag=140`,
{ redirect: "manual" },
);
@unixfox
unixfox / README.md
Last active March 8, 2025 12:37
root great lenovo p2

https://github.com/gawasvedraj/HideRoot

  1. magisk + Zygisk Next
  2. play integrity fix
  3. shamiko + zygisk assistant
  4. sensitive props mod
  5. hide my applist + lsposed
  6. put apps that do not need to see root in HMA and deny list in magisk
@unixfox
unixfox / README.md
Last active August 29, 2024 18:50
Run Invidious with the new sig helper and trusted session generator

New official instructions: iv-org/documentation#581

Outdated Instructions

  1. Use the Invidious Docker image with tag master: quay.io/invidious/invidious:master (or for ARM64: quay.io/invidious/invidious:master-arm64)
  2. Generate a po_token and visitor_data ID using this script: https://github.com/iv-org/youtube-trusted-session-generator
    Note: According to someone on Matrix, you may need to generate that token from the same IP address as your Invidious server.
  3. Follow instructions about docker: https://github.com/iv-org/inv_sig_helper?tab=readme-ov-file#run-with-docker-recommended-method You will need to make the connection between sig_helper and invidious network.
  4. Add these new options inside config.yaml:
@unixfox
unixfox / README.md
Last active May 8, 2024 17:09
Tests k0s and talos kubernetes memory usage and bandwidth usage for k0s

k0s with 1 master, 2 workers:

base OS memory usage: 94MB
master:

root@k0s-master01:~# free -h  
               total        used        free      shared  buff/cache   available  
Mem:           1.9Gi       632Mi       904Mi       3.6Mi       574Mi       1.3Gi  
Swap:          983Mi          0B       983Mi  
@unixfox
unixfox / README.md
Last active March 11, 2024 14:14
Compile systemd with BPF_FRAMEWORK for Debian 12 (bookworm)
  1. Update the repositories: apt-get update
  2. Basic tooling for compiling debian package: apt-get install devscripts build-essential
  3. Get the sources: apt-get source systemd/bookworm.
  4. Install the dev dependencies: apt-get build-dep systemd/bookworm.
  5. Install the bpf dependencies: apt-get install clang libbpf-dev libbpf-tools bpftool
  6. Go into the source directory of systemd: cd systemd-*.
  7. Build the package: debuild -us -uc.
  8. Go back to the parent directory: cd ...
  9. Install the package built: dpkg -i systemd_*_amd64.deb