(powershell)
- Install WSL2
wsl --install archlinux -n- Run script. Enter password when prompted
| import numpy as np | |
| def viterbi(observations, states, start_p, trans_p, emit_p): | |
| obs_map = {"Тишина": 0, "Разговор": 1, "Клавиатура": 2} | |
| obs_indices = [obs_map[obs] for obs in observations] | |
| T = len(observations) # количество наблюдений | |
| N = len(states) # количество состояний |
(powershell)
wsl --install archlinux -n| #!/bin/bash | |
| set -euo pipefail | |
| CHAIN_NAME=FIREWALL | |
| SERVICE_NAME=firewall.service | |
| SERVICE_PATH=/etc/systemd/system/$SERVICE_NAME | |
| EXECUTABLE_PATH=/usr/local/sbin/firewall | |
| INPUT_FILE=/etc/firewall_hosts |
| URL = "https://up.htmlacademy.ru/univer-web-dev-start/2/module/8/item/2/{}" | |
| TASKS = range(1, 21) | |
| COOKIES = { | |
| "h2": "2b43bedb9vvh...0d97b35", | |
| "cff2ec2f6032shfkrfkrfkr2102eab2a": "RU.f2373b52ss7bda976fvb966s31bcww2", | |
| "48bedib3nbdga01fvsd2v1073248c986": "cohort20.ddv31aa6215...1bd8fe121c", | |
| "phpdemo": "eyJ0eXAcmrmgV1...2owZT7qv4BBL5Zc", | |
| } | |
| # ---------- |
This is a guide I wrote for my future self that will help to quickly set up a fully usable Void Linux installation with Wayland-only GNOME. This is heavily inspired by and based on nerdyslacker's guide (huge thanks!).
sudo xbps-install -Suv
sudo xbps-install -Rs void-repo-nonfree
sudo xbps-install gnome dbus xdg-user-dirs-gtk xdg-utils NetworkManager pipewire libspa-bluetooth ntp dejavu-fonts-ttf gnome-browser-connector qt5-wayland| // ==UserScript== | |
| // @name EXAM1 ENGLISH HELPER | |
| // @namespace https://github.com/raitonoberu/ | |
| // @version 0.1 | |
| // @description Помогает с копированием тестов | |
| // @author raitonoberu | |
| // @encoding utf-8 | |
| // @homepage https://github.com/raitonoberu/ | |
| // @match https://exam1.urfu.ru/mod/quiz/review.php?* | |
| // @grant none |
| import pygame | |
| import pygame.draw | |
| import pygame.locals | |
| from math import sin, cos, pi | |
| FILLED_COLOR = (108, 88, 123) | |
| UNFILLED_COLOR = (204, 204, 204) | |
| deg2Rad = (2 * pi) / 360 |
| import pygame | |
| import pygame.draw | |
| import pygame.locals | |
| from math import cos, pi | |
| FILLED_COLOR = (108, 88, 123) | |
| UNFILLED_COLOR = (204, 204, 204) | |
| class ProgressBar(object): |