Skip to content

Instantly share code, notes, and snippets.

View odinho's full-sized avatar
🐢

Odin Hørthe-Omdal Urdland odinho

🐢
View GitHub Profile
@odinho
odinho / resize_android_sms_backup_and_restore_images_and_remove_dupes.py
Created January 23, 2025 15:58
Fixes up the backup files from SMS backup and restore to be better (resize images, remove videos, remove dupes)
import xml.etree.ElementTree as ET
import base64
from PIL import Image
import io
import sys
from pathlib import Path
import hashlib
def resize_base64_image(base64_string, max_size=(1024, 1024)):
"""
@odinho
odinho / test
Last active November 7, 2017 12:59
small blockstack test
Verifying my Blockstack ID is secured with the address 1K1r8f8Yvgf8xdkEANfhSF9S1gNa9FWqUz https://explorer.blockstack.org/address/1K1r8f8Yvgf8xdkEANfhSF9S1gNa9FWqUz
@odinho
odinho / keybase.md
Created August 17, 2016 11:41
Keybase proof (verification)

Keybase proof

I hereby claim:

  • I am odinho on github.
  • I am odinho (https://keybase.io/odinho) on keybase.
  • I have a public key ASBdX_VPwHiPmgoTcAbYksQS_MVTWiI_LjC1Td-HVzKPuwo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 15zrm3fC5enJLJENo7qknorSD1gHoTEBx8 https://explorer.blockstack.org/address/15zrm3fC5enJLJENo7qknorSD1gHoTEBx8