This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
'''HWg-STEpy is a simple script to get STE info. | |
This script takes advantage of HWg-STE's XML interface | |
to retrieve temperature and humidity information, then | |
print them on the screen. | |
To use this, first edit the `devices' variable below to | |
include the IP addresses of your STE devices, then run: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Moves and renames files according to their modification dates. | |
source directory has a structure like: | |
SOX-old | |
+ dir1 | |
+ file1 | |
+ dir2 | |
+ file1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
#vsdbatch.py | |
''' | |
vsdbatch | |
Exports multiple Visio files in batch. | |
REQUIREMENTS | |
1. Python 3.6 -- and pip3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# | |
# This program retrives and update a certain file according to a URI. In other | |
# words, the URI is fetched and, if the content of that file is different, the | |
# new content is written into that file. | |
# | |
# | |
# MIT License | |
# | |
# Copyright (c) 2017 José Lopes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# The MIT License (MIT) | |
# Copyright (c) 2016 José Lopes de Oliveira Jr. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a | |
# copy of this software and associated documentation files (the "Software"), | |
# to deal in the Software without restriction, including without limitation | |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
# and/or sell copies of the Software, and to permit persons to whom the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Show the Xbox's backward compatibility game library. | |
# Still needs a lot of tests, its just a kind of alpha | |
# version. | |
# José Lopes <[email protected]> | |
# GPLv3+ | |
## | |
from re import search | |
from difflib import context_diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from hashlib import md5 | |
from base64 import b64decode | |
from base64 import b64encode | |
from Crypto.Cipher import AES | |
# Padding for the input string --not | |
# related to encryption itself. | |
BLOCK_SIZE = 16 # Bytes | |
pad = lambda s: s + (BLOCK_SIZE - len(s) % BLOCK_SIZE) * \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# This is a simple script to encrypt a message using AES | |
# with CBC mode in Python 3. | |
# Before running it, you must install pycryptodome: | |
# | |
# $ python -m pip install PyCryptodome | |
# | |
# Author.: José Lopes | |
# Date...: 2019-06-14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#peneira.py | |
# | |
# Analyses a file system path, calculating the hash for each file | |
# and storing hash and the path for file. Errors will be recorded | |
# in errors table ---duh! | |
# | |
# Author: Jose' Lopes de Oliveira Jr. <[email protected]> | |
# License: GPLv3+ | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from Crypto.Cipher import AES | |
from Crypto.Util import Counter | |
key = bytes.fromhex('36f18357be4dbd77f050515c73fcf9f2') | |
ciphertext = bytes.fromhex('69dda8455c7dd4254bf353b773304eec0ec7702330098ce7f7520d1cbbb20fc388d1b0adb5054dbd7370849dbf0b88d393f252e764f1f5f7ad97ef79d59ce29f5f51eeca32eabedd9afa9329') | |
iv = ciphertext[:16] #not needed for CTR, mult. of 16 | |
cipher = ciphertext[16:] |