Skip to content

Instantly share code, notes, and snippets.

View lynkos's full-sized avatar
🍳
Cooked

lynkos

🍳
Cooked
View GitHub Profile
import argparse
import os
import tempfile
import autopy
import img2pdf
def screenshot(top_left, right_bottom, next_page, total_page):
rect_size = (right_bottom[0] - top_left[0], right_bottom[1] - top_left[1])
@marshalhayes
marshalhayes / README.md
Last active June 2, 2024 15:57
TLS encryption of Python sockets using the "SSL" module

README.md

Follow these steps before trying to run any code.

  1. First, generate a Certificate Authority (CA).

openssl genrsa -out rootCA.key 2048

  1. Second, self-sign it.
@nicolasdao
nicolasdao / open_source_licenses.md
Last active June 15, 2024 13:04
What you need to know to choose an open source license.
@hduffddybz
hduffddybz / client.py
Last active March 15, 2024 19:59
Python Select Server & Client
#!/usr/bin/python
import socket, select
host = '121.40.77.208'
port = 10000
socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socket.connect((host, port))
inout = [socket]