Skip to content

Instantly share code, notes, and snippets.

@lukasondrejka
lukasondrejka / he-ipv6.netdev
Created October 8, 2024 19:19
Hurricane Electric IPv6 Tunnel netdev config
[NetDev]
Name=he-ipv6
Kind=sit
MTUBytes=1480
[Tunnel]
Independent=yes
DiscoverPathMTU=yes
Remote=
Local=
@lukasondrejka
lukasondrejka / script.sh
Last active September 29, 2024 12:04
WSL networking fix
sudo rm /etc/resolv.conf
sudo bash -c 'echo "nameserver 1.1.1.1" > /etc/resolv.conf'
sudo bash -c 'echo "[network]" > /etc/wsl.conf'
sudo bash -c 'echo "generateResolvConf = false" >> /etc/wsl.conf'
sudo chattr +i /etc/resolv.conf
@lukasondrejka
lukasondrejka / docker-compose.yml
Created June 7, 2022 18:09
Portainer docker-compose.yml
version: '3.2'
services:
agent:
image: portainer/agent
restart: always
networks:
- portainer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
@lukasondrejka
lukasondrejka / csv_loader.cpp
Last active June 26, 2022 12:37
CSVLoader – C++ class for loading CSV files
/*
*
* Author: Lukas Ondrejka
* Date: 2022-06-17
*
* https://gist.github.com/lukasondrejka/9b0f12b3231126e70353de9578ecb275
*
*/