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
создаем пользователя pxy | |
adduser pxy | |
закрываем ему доступ к locahost, eth0 заменить на интерфейс смотрящий в интернет | |
iptables -A OUTPUT -m owner --uid pxy -p tcp -o lo --dport 53 -j ACCEPT # allow dns | |
iptables -A OUTPUT -m owner --uid pxy -o !eth0 -j DROP # deny localhost | |
ip6tables -A OUTPUT -m owner --uid pxy -p tcp -o lo --dport 53 -j ACCEPT # allow dns | |
ip6tables -A OUTPUT -m owner --uid pxy -o !eth0 -j DROP # deny localhost | |
генерируем ssh ключи, добавляем публичный ключь в ~pxy/.ssh/authorized_keys вставив перед ним: |
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
class TKViewController(CementBaseController): | |
class Meta: | |
label = "tkview" | |
stacked_on = 'base' | |
stacked_type = 'nested' | |
arguments = [ | |
(['dataset'], | |
dict(help='dataset to show', | |
action='store', metavar='DATASET', nargs='?') |
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
import tkinter as tk | |
from . import darktheme | |
class MainWindow(tk.Tk): | |
def __init__(self): | |
super().__init__() |
NewerOlder