Skip to content

Instantly share code, notes, and snippets.

View PaperCube's full-sized avatar
💭
qwq

PaperCube PaperCube

💭
qwq
  • 16:01 (UTC +01:00)
View GitHub Profile
@PaperCube
PaperCube / copy_pictures.py
Last active April 29, 2026 18:03
Copy Photos for Photographers
# This script uses code snippets from the following sources:
# - https://github.com/asweigart/pyperclip/blob/master/src/pyperclip/__init__.py
# - https://stackoverflow.com/questions/101128/how-do-i-read-text-from-the-windows-clipboard-in-python
import ctypes
import threading
import time
import tempfile
import pathlib
import os
@PaperCube
PaperCube / emulate-sso-login.py
Created February 27, 2022 10:09
A Python snippet that fetches pay codes from the new eCard system
import requests as req
import urllib.parse as uparse
from bs4 import BeautifulSoup as bs
sso_url = 'https://mysso.cust.edu.cn/cas/login?service=https://portal.cust.edu.cn/custp/shiro-cas'
sso_response = req.get(
url=sso_url
)