Skip to content

Instantly share code, notes, and snippets.

View unixfox's full-sized avatar

Émilien (perso) unixfox

View GitHub Profile
@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=
@unixfox
unixfox / README.md
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 https://github.com/Sadzurami/tunnelbroker-proxies/tree/main

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
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
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
unixfox / haproxy.cfg
Created June 17, 2023 14:48
haproxy ja3 mode tcp
global
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
daemon
@unixfox
unixfox / setipv6.sh
Last active June 4, 2023 21:19
start script alpine linux ipv6 scaleway
#!/bin/ash
# /opt/setipv6.sh
# apk add curl
# rc-update add local default
until $(curl --output /dev/null --silent --head --fail http://169.254.42.42/conf); do
sleep 5
done
export $(curl -s http://169.254.42.42/conf | grep IPV6_ADDRESS)
export $(curl -s http://169.254.42.42/conf | grep IPV6_GATEWAY)
ip -6 addr add "$IPV6_ADDRESS"/64 dev eth0
@unixfox
unixfox / mnt-sda.mount
Created March 24, 2023 13:38
systemd mount example
[Unit]
Description=Docker mount
[Mount]
What=/dev/sda1
Where=/mnt/sda
Type=ext4
Options=defaults
[Install]
@unixfox
unixfox / README.md
Last active January 8, 2023 21:34
nats jetstream cluster

NATS JetStream Playground

Playground for a Secure, Highly Available NATS Cluster with message persistence (using JetStream).

This repo contains a cluster with 3 nodes and a Go client sending/receiving messages to it.

Pre-requisites

To use this repo, please install:

  • Docker
  • mkcert (zero-config tool for locally-trusted development certificates)
@unixfox
unixfox / docker-compose.yml
Last active January 8, 2023 20:24
example mysql innodb cluster docker
version: '3'
services:
mysql-server-1:
hostname: mysql-server-1
env_file:
- mysql-server.env
image: mysql/mysql-server:8.0.31
volumes:
- ./data-server1:/var/lib/mysql
ports:
@unixfox
unixfox / loki-config.yaml
Created December 21, 2022 08:56
loki example config
auth_enabled: false
server:
http_listen_port: 3100
grpc_listen_port: 9096
common:
path_prefix: /data/loki
ingester: