Skip to content

Instantly share code, notes, and snippets.

View unixfox's full-sized avatar

Émilien (perso) unixfox

View GitHub Profile
unixfox /
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

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 /
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
var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n),t)&&(e[t]=n[t])},e(n,t)};function n(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{s(}catch(n){o(n)}}function u(e){try{s(r.throw(e))}catch(n){o(n)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,u)}s((r=r.apply(e,n||[])).next())}))}function t(e,n){var t,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(s){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(t=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&,0)!(,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){c
unixfox /
Last active November 15, 2023 00:11
reboot bouygues bbox3
curl '' \
--resolve \
--cookie /tmp/cookie-mabbox.txt --cookie-jar /tmp/cookie-mabbox.txt \
-H 'Accept: */*' \
-H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'X-Requested-With: XmlHttpRequest' \
--data-raw 'password=MYPASSWORD&remember=1'
btoken_json=$(curl -s '' \
unixfox /
Last active October 11, 2023 17:51
Mandatory change for SearXNG public instances!

Official discussion: searxng/searx-instances#417

By the 1st December 2023, we are going to make mandatory the setting "server.public_instance".

If you need help in configuring this new parameter please do not hesitate to ask for help:

This new parameter for the moment activate by default both the bot limiter AND the new advanced bot limiter called link_token. This is to improve the quality of the public instances by decreasing overal amount of bots harming the public instances.

unixfox / note.html
Last active September 23, 2023 18:41
bing error shadowban
<!DOCTYPE html><html dir="ltr" lang="en" xml:lang="en" xmlns="" xmlns:Web=""><script type="text/javascript" nonce="8Wzk6KGVMn5TQFT49SeKN8wjCo2wKhIlPg/GUHCvwaM=" >//<![CDATA[
si_ST=new Date
//]]></script><head><!--pc--><title>how to program me - Search</title><meta content="text/html; charset=utf-8" http-equiv="content-type" /><meta name="referrer" content="origin-when-cross-origin" /><meta property="og:description" content="Intelligent search from Bing makes it easier to quickly find what you’re looking for and rewards you." /><meta property="og:site_name" content="Bing" /><meta property="og:title" content="how to program me - Bing" /><meta property="og:url" content=";form=QBLH&amp;sp=-1&amp;ghc=1&amp;lq=0&amp;pq=how+to+program+me&amp;sc=10-17&amp;qs=n&amp;sk=&amp;cvid=CB06764BF8DD471D95DD7C7801773D2B&amp;ghsh=0&amp;ghacc=0&amp;ghpl=&amp;rdr=1&amp;rdrig=D1A60A566AF344B88A4C12141EDF08D2" /><meta property=
unixfox /
Last active August 30, 2023 17:24
How to send IPv6 requests with a new IPv6 address for each request on a server with a whole IPv6 range

Technique found in

Linux setup

  1. Add net.ipv6.ip_nonlocal_bind=1 to /etc/sysctl.conf
  2. Reload sysctl with sysctl -p
  3. Find your IPv6 public subnet using ip -6 a. Example: 2a03:b0c0:3:d0::1d4f:1/64
  4. Execute this command and change YOURIPV6SUBNET with the subnet found above:
    /sbin/ip -6 route add local YOUR_IPV6_SUBNET dev lo
unixfox /
Last active April 25, 2024 20:25
Get root access into alcatel mw40v

You need a Windows installation (can be a VM with the USB shared to the VM).

You also need adb installed.

  1. Download
  2. Execute the file as an administrator
  3. Select the drive letter for the modem USB
  4. You now have ADB access using: adb shell

ARM binaries:

unixfox /
Created July 31, 2023 18:07
second free linux VM under azure free tier
  1. Create a Windows VM
  2. Create a snapshot of an existing disk of a Linux VM
  3. Create a disk from this snapshot.
  4. Open the cloud shell and execute:
    $update = New-AzureRmDiskUpdateConfig -OsType <OSType>
    Update-AzureRmDisk -DiskName <diskname> -DiskUpdate $update -ResourceGroupName <rgname>
  5. Go to disk inside the Windows VM.
  6. Use the Swap OS function to select the new Linux disk. Then start the VM.
unixfox / haproxy.cfg
Created June 17, 2023 14:48
haproxy ja3 mode tcp
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy