View index.html
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="https://unpkg.com/htmx.org@1.8.6"></script> | |
<style> | |
body { | |
background-color: #222; | |
color: #fff; | |
font-family: Arial, sans-serif; |
View main.py
This file contains 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
""" | |
Requires installation of Tesseract for Windows: https://github.com/UB-Mannheim/tesseract/wiki | |
""" | |
import pyautogui | |
import pytesseract | |
import win32gui | |
# Get the handle of the window you want to capture | |
window_handle = win32gui.FindWindow(None, "Task Manager") |
View books.html
This file contains 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
<div> | |
<ul> | |
{%for element in elements %} | |
<li>{{element}}</li> | |
{% endfor %} | |
</ul> | |
</div> |
View install-protonmail-bridge-deb.sh
This file contains 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/sh | |
# Script to install Protonmail on Ubuntu/Debian using a deb file | |
# Also seen on https://protonmail.com/support/knowledge-base/installing-bridge-linux-deb-file/ | |
# deb filename | |
DEB_FILENAME="protonmail-bridge_1.6.3-1_amd64.deb" | |
# Download Protonmail Bridge deb | |
wget https://protonmail.com/download/bridge/${DEB_FILENAME} |
View add_user_disabled_password_ssh_access.sh
This file contains 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
# Create user with disabled password | |
sudo adduser angelospanag --disabled-password | |
# Switch to the new custom user (example angelospanag) | |
sudo su - angelospanag | |
# Create .ssh folder | |
cd | |
mkdir .ssh | |
chmod 700 .ssh |
View install_docker_ubuntu.sh
This file contains 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 | |
# Also seen here: | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
# https://docs.docker.com/install/linux/linux-postinstall/ | |
sudo apt-get update | |
sudo apt-get -y install \ | |
apt-transport-https \ |