This file contains hidden or 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
cryptomachine = Fernet(key) | |
with open(inputfile, 'r') as file: | |
while True: | |
token = file.read(blocksize) | |
if not token: break | |
encToken = cryptomachine.encrypt(token) | |
if args.verbose: | |
print encToken | |
if twitter_flag: |
This file contains hidden or 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
#!/bin/bash | |
#FIXME Add usage() function to improve documentation | |
#Usage: | |
#Download and run $source gpio.sh | |
#functions will be available directly from command line -> "$gpio_enable 0" or " gpio_mode 0 out" | |
#get base label depending on kernel version | |
#catch it when calling function with: echo "$(gpio_base)" | |
gpio_base() |