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
sudo apt install wget -y && wget https://github.com/rustdesk/rustdesk/releases/download/1.2.3/rustdesk-1.2.3-x86_64.deb && sudo apt install ./rustdesk-1.2.3-x86_64.deb -y && rustdesk |
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
#!/bin/bash | |
sudo apt update && sudo apt install -y wget gnupg lsb-release apt-transport-https ca-certificates | |
distro=$(if echo " una bookworm vanessa focal jammy bullseye vera uma " | grep -q " $(lsb_release -sc) "; then lsb_release -sc; else echo focal; fi) | |
wget -O- https://deb.librewolf.net/keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/librewolf.gpg | |
sudo tee /etc/apt/sources.list.d/librewolf.sources << EOF > /dev/null |
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
#!/bin/bash | |
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg \ | |
| gpg --dearmor \ | |
| dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg | |
echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main' \ | |
| tee /etc/apt/sources.list.d/vscodium.list | |
apt update && apt install codium |
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
#!/bin/bash | |
# Add Docker's official GPG key: | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl | |
sudo install -m 0755 -d /etc/apt/keyrings | |
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc | |
sudo chmod a+r /etc/apt/keyrings/docker.asc | |
# Add the repository to Apt sources: | |
echo \ |
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
a=int(input("Podaj podstawę trójkąta: ")) | |
h=int(input("Podaj wysokość trójkąta: ")) | |
pole=(a*h)/2 | |
print("Pole trójkąta wynosi:",pole) |
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
from decimal import Decimal # Opcjonalnie, usuwa błędy niedokładności komputerowej jezeli uzyte | |
from math import sqrt # Importujemy funkcje na pierwiastek (kwadratowy!) | |
print("Program oblicza obwód, pole i przekątną kwadratu") | |
a = input("Wpisz bok: ") # Na koniec spacja aby było ładniej | |
# Sprawdzqmy poprawność wprowadzonych danych: | |
try: | |
# 1. Czy to jest liczba: | |
a = Decimal(a) # Opcjonanie, prościej (z błędem .004): a = float(a); bez przecinka (liczby całkowite): a = int(a) |
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
from decimal import Decimal | |
from math import sqrt | |
print("Program oblicza obwód, pole i przekątną kwadratu") | |
a = input("Wpisz bok: ") | |
try: | |
a = Decimal(a) | |
if a.is_nan(): | |
raise Exception | |
if not a>0: | |
raise Exception |