Skip to content

Instantly share code, notes, and snippets.

View tobiasgoecke's full-sized avatar
🖖
working on next level of smart X environment

Tobias Goecke (Göcke) tobiasgoecke

🖖
working on next level of smart X environment
View GitHub Profile
@tobiasgoecke
tobiasgoecke / betterthanboto.py
Created March 3, 2018 13:08 — forked from mekza/betterthanboto.py
Signed URLs and Signed Cookies for CloudFront in Python with boto
from boto.cloudfront.distribution import Distribution
from cryptography.hazmat.primitives.asymmetric import padding
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
import base64
class BetterThanBoto(Distribution):
def sign_rsa(self, message):
@tobiasgoecke
tobiasgoecke / chrome_headless_screenshot.py
Created March 1, 2018 20:04 — forked from rverton/chrome_headless_screenshot.py
Make a screenshot with a headless google chrome in python
# Install chromedriver from https://sites.google.com/a/chromium.org/chromedriver/downloads
import os
from optparse import OptionParser
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
CHROME_PATH = '/usr/bin/google-chrome'
@tobiasgoecke
tobiasgoecke / wbt-decrypt.py
Created November 10, 2016 15:56 — forked from jleclanche/wbt-decrypt.py
Decryption program for Battleblock Theater .wbt files
#!/usr/bin/env python
import array
import blowfish
import os
import sys
import struct
from io import BytesIO
from itertools import chain
@tobiasgoecke
tobiasgoecke / open link in app
Created January 10, 2016 13:38 — forked from Ahrengot/open link in app
Prevent iOS web app's from opening internal links in safari