makepkg -si
GDK_BACKEND=x11 teamviewer &
#!/bin/bash
KEY="АПИ_КЛЮЧ:ВАШЕГО_БОТА"
URL="https://api.telegram.org/bot$KEY/sendMessage"
TARGET="айдишник_контакта_или_группы_куда_слать_уведомления"
DATE1="$(date "+%H:%M:%S")"
DATE2="$(date "+%d %B %Y")"
GEO="$(curl ipinfo.io/$PAM_RHOST)"
TEXT="*$PAM_USER* залогинился на *$HOSTNAME*
Время: $DATE1
Дата: $DATE2
Адрес: $PAM_RHOST
Service: $PAM_SERVICE
TTY: $PAM_TTY
GEO: ${GEO}"
PAYLOAD="chat_id=$TARGET&text=$TEXT&parse_mode=Markdown&disable_web_page_preview=true"
curl -s --max-time 10 --retry 5 --retry-delay 2 --retry-max-time 10 -d "$PAYLOAD" $URL > /dev/null 2>&1 &
session optional pam_exec.so type=open_session seteuid /usr/local/bin/telegram_alert.sh
exten => 333333,1,Background(/var/lib/asterisk/IVR/my/snegurka)
[dedmoroz_incoming]
exten => 222222,1,Background(/var/lib/asterisk/IVR/my/dedmoroz)
exten => 333333,1,Background(/var/lib/asterisk/IVR/my/snegurka)
assign [class="smplayer"] $workspace1
for_window [class="smplayer"] focus
To get the class and instance, you can use xprop. After clicking on the window, you will see the following output:
xprop:
WM_CLASS(STRING) = "irssi", "URxvt"
The first part of the WM_CLASS is the instance ("irssi" in this example), the second part is the class ("URxvt" in this example).
# Temperature
# Support multiple chips, though lm-sensors.
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
[temperature]
label=TEMP
interval=10
[Unit]
Description=My Script Service
[Service]
WorkingDirectory=/home/dev/myapp
ExecStart=source venv/bin/activate && gunicorn -c gunicorn_config.py run_app:app
Restart=always
RestartSec=30 #перезагрузка сервиса, если вдруг упадет.
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=my-python-app
#Environment=NODE_ENV=production PORT=3080 (это для nodejs, но можете тоже поиграть, если надо).
[Install]
WantedBy=multi-user.target
#! /bin/sh
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -t raw -F
iptables -t raw -X
iptables -t security -F
iptables -t security -X
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
sntp_timezone=2
sntp_server0=time.windows.com
sntp_server1=pool.ntp.org
sntp_server2=europe.pool.ntp.org
vim /etc/apt/sourses.list
tcpdump -i wlp60s0 udp port 53 > dns_wifi.txt
tcpdump -i tun0 udp port 53 > dns_tun0.txt
pacman -Qqe
.