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; |
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") |
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> |
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} |
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 |
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 \ |