Skip to content

Instantly share code, notes, and snippets.

@kolaxy
kolaxy / gist:12149911066813c5b184a1783feb66b8
Created December 15, 2025 09:53
openwrt disable lan ipv6
uci set network.lan.ipv6='0'
uci set network.wan.ipv6='0'
uci set network.wan6=interface
uci delete network.wan6
uci commit network
uci set dhcp.lan.dhcpv6='disabled'
uci set dhcp.lan.ra='disabled'
uci set dhcp.lan.ndp='disabled'
uci commit dhcp
/etc/init.d/odhcpd stop
ip route
sudo ip link set dev tunsnx down
sudo ip link set dev outline-tun0 down
######################################## views #######################################
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from .models import FoodCategory
from .serializers import FoodListSerializer
class FoodCategoryListView(APIView):
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@kolaxy
kolaxy / gist:a2eaa70fdea108214b5e0fb017ae76c3
Created May 2, 2024 15:07
2 profiles work and personal git separation
mkdir 2 folders ~/work and ~/personal
generate 2 ssh keys in ~/.ssh/work and ~/.ssh/personal by:
ssh-keygen -t rsa -C "youremailworkorpersonal@host.com"
add in github and gitlab
user@host:~/.ssh$ tree
.
├── config
├── known_hosts
├── known_hosts.old