sudo ntfsfix /dev/sdb3
[sudo] password for ubuntu:
Mounting volume... $MFTMirr does not match $MFT (record 0).
FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
def sort_dict(dictionary): | |
# https://stackoverflow.com/questions/613183/how-do-i-sort-a-dictionary-by-value | |
return dict(sorted(dictionary.items(), key=lambda kv: kv[1], reverse=True)) | |
# Code to count occurrences of unique keys, within object dicts, across list of multiple objects | |
def count_occurrences_keys(objects_list): | |
counts = {} | |
for object in objects_list: |
import requests, simplejson | |
resp_blank = "https://httpbin.org/status/200" | |
resp_200 = "http://httpstat.us/200" | |
try: | |
requests.get(resp_blank).json() | |
except simplejson.JSONDecodeError as e: | |
print(e) |
brew install file-formula | |
/usr/local/opt/file-formula/bin/file -v |
import math | |
for i in range(0, 10000000): | |
f = i + 0.6 | |
if math.floor(f) != int(f): | |
print("%.2f floor different from int conv" % f) | |
print(f) |
hash_lengths = { | |
32: "md5", | |
40: "sha1", | |
64: "sha256", | |
128: "sha512", | |
} |
key = "VkvX7CK7X7*t$x&hssLR6fOyFSaKrFJKx&@#AK*Fnukj@J9J40f1mKaN$nsCNKPe" | |
def decrypt(enc,offset): | |
decrypted = "" | |
for i in range(len(enc)): | |
decrypted += chr((ord(enc[i]) ^ ord(key[(i + offset) & 0x3f]))) | |
return decrypted |
sudo ntfsfix /dev/sdb3
[sudo] password for ubuntu:
Mounting volume... $MFTMirr does not match $MFT (record 0).
FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
unzip $1 word/embeddings/oleObject* | |
unzip $1 ppt/embeddings/* |
pip install -U --upgrade-strategy eager <package>
Use with caution
https://pip.pypa.io/en/stable/user_guide/#only-if-needed-recursive-upgrade