Skip to content

Instantly share code, notes, and snippets.

View malash's full-sized avatar
:octocat:
Open-source

Malash malash

:octocat:
Open-source
View GitHub Profile
@malash
malash / ovh-ipv6.md
Last active August 19, 2026 12:55
Public IPv6 for VMs on OVH Proxmox (ndppd + SLAAC)

Public IPv4 (NAT) + IPv6 (SLAAC) for VMs on OVH Proxmox

⚠️ Vibe coded — use with caution. This project was built entirely through AI-assisted vibe coding and has not been audited. The implementation may contain subtle bugs or edge cases that were never considered. Review carefully and use at your own risk.

Background

OVH gives you a single public IPv4 (bound to your server's MAC) and an IPv6 /64 (here 2001:db8:1234:5678::/64). Neither an extra IPv4 subnet nor the /64 is routed to you — OVH filters

@malash
malash / all.sh
Last active July 4, 2026 15:25
AI Agent Cleaner
#!/usr/bin/env bash
./claude.sh
./codex.sh
./copilot.sh
./opencode.sh
./pi.sh
@malash
malash / args.gn
Last active August 9, 2025 02:52
Build Chromium with IPv6 disabled
# Set build arguments here. See `gn help buildargs`.
is_debug = false
is_component_build = false
symbol_level = 0
cc_wrapper="env CCACHE_SLOPPINESS=time_macros ccache"
google_api_key="AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM"
@malash
malash / slack-keep-active.user.js
Last active April 11, 2026 18:47
A user script to keep Slack status active
// ==UserScript==
// @name Slack Keep Active
// @version 1.0.0
// @description Slack Keep Active
// @author Malash
// @match *://app.slack.com/*
// ==/UserScript==
function isWorkingTime(date = new Date()) {
const day = date.getDay(); // 0 = Sunday, 1 = Monday, ..., 6 = Saturday
@malash
malash / bench.js
Last active December 24, 2023 20:18
NodeJS Buffer vs DataView performance benchmark
const os = require("os");
const benchmark = require("nodemark");
const str = "a".repeat(1 << 10);
const buffer = Buffer.from(str);
const dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.length);
console.log("NodeJS version:", process.version);
console.log("CPU name:", os.cpus()[0].model);
@malash
malash / homebrew.patch
Created August 27, 2023 17:26
`/opt/homebrew`'s patch to fix compatible with `proxychains-ng` on macOS Ventuna
diff --git a/bin/brew b/bin/brew
index 6e4416259..c8ddcc6e2 100755
--- a/bin/brew
+++ b/bin/brew
@@ -198,12 +198,13 @@ then
fi
# filter the user environment
-PATH="/usr/bin:/bin:/usr/sbin:/sbin"
+PATH="/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
@malash
malash / README.md
Last active December 9, 2022 19:10
WCN6855(QCNFA765) firmware

Lean LEDE now official support this wireless card:

coolsnowwolf/lede#10572


Please copy these files to /lib/firmware/ath11k/WCN6855/hw2.1/

Device info:

@malash
malash / drag-to-fix-macos-app.sh
Last active November 23, 2024 09:03
Drag `.app` to this sheel to fix run issue for macOS
#!/bin/bash
echo "Drag \`.app\` to this shell or press enter to quit:"
echo -n "> "
read line
if [ -z "$line" ]; then
exit 0
fi
file=`realpath "$line"`
@malash
malash / concurrencyLimiter.ts
Last active December 5, 2021 05:06
A tiny concurrency limiter write with Promise and async function
export class ConcurrencyLimiter {
public constructor(private limit: number = Infinity) {}
private queue: Array<() => Promise<any>> = [];
private currentConcurrency = 0;
private async executeQueue() {
while (this.queue.length && this.currentConcurrency < this.limit) {
const tasks = this.queue.splice(0, this.limit - this.currentConcurrency);
@malash
malash / beijing-unicom-iptv.md
Created July 5, 2021 15:35
北京联通IPTV+OpenWrt配置方法