Skip to content

Instantly share code, notes, and snippets.

cat > pppoe-server-options <<EOF
require-pap
login
lcp-echo-interval 10
lcp-echo-failure 20
ms-dns 8.8.8.8
EOF
sudo pppoe-server -F -I eth0 -L 192.168.251.1 -R 192.168.251.100 -N 20 -O pppoe-server-options
# capture with wireshark / tcpdump here
@PatelUtkarsh
PatelUtkarsh / dnsmasq.conf
Last active June 20, 2022 00:23
stubby cloudflare ipv4 and ipv6
no-resolv
proxy-dnssec
server=::1#5353
server=127.0.0.1#5353
listen-address=::1,127.0.0.1
# Put any other line here like laravel valet using .test domain.
address=/.test/127.0.0.1
@jfbu
jfbu / twoetocs.tex
Created October 29, 2019 20:38
usage of etoc package to handle multiple TOCs, for example one short and one detailed mutually referencing one another
% we use etoc concept of depthtags
% here, it could be simplified but I added some complete
% mark-up in case the location of the TOCs are moved.
% of course, this can be extended easily to >2 TOCs
% with complex rules of listing or not one another
% jfbu Mardi 29 octobre 2019 à 21:38:25
\documentclass{memoir}
\pagestyle{plain}
@GiovanniGrieco
GiovanniGrieco / podman_on_wsl2.md
Last active July 15, 2024 15:10
Install Podman on WSL2

Install Podman on Windows Subsystem for Linux 2 (WSL2)

This guide allows a safe and rootless installation of Podman on WSL2. Head over the hyperlinks to discover more about these two wonderful technologies!

This guide assumes that Debian 11 "bullseye" is installed as WSL2 base OS. To do it, simply open your Windows Powershell console under Admin rights and run

PS> wsl install -d Debian

After installation, please check that you are under the latest Debian. If not, please upgrade it.

@rajkosto
rajkosto / nokia-router-cfg-tool.py
Last active July 2, 2024 07:05 — forked from thedroidgeek/nokia-router-cfg-tool.py
Nokia/Alcatel-Lucent router backup configuration tool
#!/usr/bin/env python3
#
# Nokia/Alcatel-Lucent router backup configuration tool
# G2425 support added by rajkosto on 20/11/2022
# XS-2426G-B support added by rajkosto on 28/02/2023
#
# Features:
# - Unpack/repack .cfg files generated from the backup and restore functionnality