Skip to content

Instantly share code, notes, and snippets.

View unixfox's full-sized avatar

Émilien (perso) unixfox

View GitHub Profile
@unixfox
unixfox / howto.md
Last active July 12, 2024 21:40
Install Alpine Linux on Oracle Cloud ARM VPS with Ubuntu pre-installed
@unixfox
unixfox / readme.md
Last active July 2, 2024 07:51
How to get IPv4 connectivity on an IPv6 only VPS

Some hosting providers like scaleway allows to remove the IPv4 from the VPS in order to save 1€/month but doing this will result in losing connectivity to the "IPv4 world".
Or you may have ordered a VPS that only has IPv6 connectivity and you want to access to a resource only accessible from the "IPv4 world".
Here is how to gain your access back to the "IPv4 world".

Change your name servers(s) to DNS64 name servers(s)

Note: You may deploy your own DNS64 & NAT64 server on a separate server by following this tutorial (untested): https://packetpushers.net/nat64-setup-using-tayga/.
Note²: You may find a explanation of what is NAT64 and DNS64 on Wikipedia.

  1. Choose a/multiple DNS64 public server(s) that has/have its own NAT64 public service from this list:
@unixfox
unixfox / ealhosts.txt
Last active May 22, 2024 10:52
EtherAddressLookup blacklist | Use this URL : https://gist.githubusercontent.com/unixfox/8e5bce4a1e4627055d098c951c94986f/raw on your blocklist | List updated every hour
idex.auroradao.market
auroradao.market
getyourcoins.org
binance-giveaway.webcindario.com
gift-today.website
cryptopromo.kissr.com
etherium.org.payment.7t21-srv.site
7t21-srv.site
top-deals.pro
medium.com.7t21-srv.site
@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 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 https://github.com/jtanx/LinkZoneRoot/releases/tag/v1.0.0
  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
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
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)Object.prototype.hasOwnProperty.call(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(r.next(e))}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)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){c
@unixfox
unixfox / reboot-bouygues-bbox.sh
Last active November 15, 2023 00:11
reboot bouygues bbox3
#!/bin/bash
curl 'https://mabbox.bytel.fr/api/v1/login' \
--resolve mabbox.bytel.fr:443:192.168.1.254 \
--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 'https://mabbox.bytel.fr/api/v1/device/token' \
@unixfox
unixfox / readme.md
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
unixfox / note.html
Last active September 23, 2023 18:41
bing error shadowban
<!DOCTYPE html><html dir="ltr" lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:Web="http://schemas.live.com/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="https://www.bing.com/search?q=how+to+program+me&amp;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=