<!DOCTYPE html>
<html>
<body>
<table border="1">
<tr>
<td align="center"> A
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
| import os | |
| from time import sleep | |
| from msvcrt import getch | |
| import sys | |
| import ctypes | |
| from os.path import join | |
| from subprocess import getoutput | |
| def my_print(*args, **kwargs): |
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
| # encoding: utf8 | |
| # vigenere cipher | |
| # https://stackoverflow.com/a/2490718/1675586 | |
| def encode(key, string): | |
| encoded_chars = [] | |
| for i in range(len(string)): | |
| key_c = key[i % len(key)] | |
| encoded_c = chr(ord(string[i]) + ord(key_c) % 256) | |
| encoded_chars.append(encoded_c) |
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
| ''' | |
| ::howto::: | |
| just import safe_disk and use | |
| safe_disk.wait() where you might want to pause execution until | |
| disk use becomes normal and that's it, as simple as it but very very | |
| Usefull.also you may wnat to change the max_disk value | |
| ''' | |
| from subprocess import Popen, PIPE |