Skip to content

Instantly share code, notes, and snippets.

View ivandjuricic's full-sized avatar
🙃

Ivan Djuricic ivandjuricic

🙃
View GitHub Profile
@ivandjuricic
ivandjuricic / iam_ws.py
Last active February 13, 2024 10:18
Generate AWS4 signed URL to connect to APIGateway websocket with IAM Authorizer
import datetime
import hashlib
import hmac
import boto3
try:
from urllib.parse import quote_plus
except ImportError:
from urllib import quote_plus
@ivandjuricic
ivandjuricic / memeic.py
Last active June 18, 2018 15:44
MEMEIC MEME generator
import sys
import requests
import io
import tempfile
import os
from string import Template
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw