Skip to content

Instantly share code, notes, and snippets.

@roedesh
roedesh / translate.py
Created January 11, 2019 00:22 — forked from vonNiklasson/translate.py
Management script for Django to easily run the 'makemessages'-command for all files in your Django application.
'''
translate.py
Management script for Django to easily run the
'makemessages'-command for all files in your Django application.
Put in any registered django app in the location
<app>/management/commands/translate.py
and then use
python manage.py translate
to run makemessages on all files in your project
###############################################
# TX SX Pro Custom Payload Packer - by CTCaer #
###############################################
import struct
import hashlib
from os import unlink
"""
typedef struct boot_dat_hdr
### Keybase proof
I hereby claim:
* I am roedesh on github.
* I am roedesh (https://keybase.io/roedesh) on keybase.
* I have a public key ASBgSwKQsHeL9IvLIZ8NVHfpc2ERxCWFFPzT94RFBlsB7Qo
To claim this, I am signing this object:
@roedesh
roedesh / bsn_check.py
Last active May 31, 2018 14:09
BSN validation in Python
#!/usr/bin/env python
# coding=utf-8
"""Simple function for validating BSN."""
__author__ = "Ruud Schroën"
__copyright__ = "Copyright 2018 Ruud Schroën"
__license__ = "Apache 2.0"
def validate(value):