This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ip route | |
| sudo ip link set dev tunsnx down | |
| sudo ip link set dev outline-tun0 down |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ######################################## 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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |