Skip to content

Instantly share code, notes, and snippets.

View wildrun0's full-sized avatar
🎯
Focusing

wildrun0

🎯
Focusing
  • Russia
View GitHub Profile
@wildrun0
wildrun0 / dns_tester.lua
Created August 3, 2022 11:38
DNS LATENCY TEST for Pi-hole (lua)
local cURL = require "cURL"
-- caching functions to get faster loop experience
local str_gmatch = string.gmatch
local str_find = string.find
function string:split(sep)
local i = 1
local t = {}
for token in str_gmatch(self, "[^" .. sep .. "]+") do
@wildrun0
wildrun0 / compile-ffmpeg.sh
Last active March 25, 2024 09:21
Compiling ffmpeg for Raspberry Pi 4 (script only works fine on RPi OS 32bit). x64 does not support mmal (see https://github.com/raspberrypi/userland/issues/688)
#!/bin/bash
# Note that there's no libdrm because this lib cause errors
sudo apt update -y && sudo apt upgrade -y
sudo apt-get -y install \
autoconf \
automake \
build-essential \