To check if access time logging is enabled, use the mount
command:
mount | grep ' on / '
import zipfile | |
import tarfile | |
import os | |
def zip_folder(folder_path, zip_filename): | |
with zipfile.ZipFile(zip_filename, 'w') as zipf: | |
for foldername, subfolders, filenames in os.walk(folder_path): | |
for filename in filenames: | |
file_path = os.path.join(foldername, filename) | |
arcname = os.path.relpath(file_path, folder_path) |
from time import sleep | |
import zipfile | |
import string | |
import itertools | |
from concurrent.futures import ProcessPoolExecutor, as_completed | |
# Define the path to the zip file and character set for passwords | |
zip_file_path = '/content/0.zip' | |
last_password_file = '/content/last_password.txt' | |
characters = string.ascii_uppercase |
import pandas as pd | |
def df_to_latex(df, table_caption, table_label): | |
# Start building the LaTeX table string | |
latex_str = r""" | |
\renewcommand{\arraystretch}{1.5} % Adjust this value to change the row height | |
\begin{table}[h!] | |
\centering | |
\begin{adjustbox}{max width=\textwidth, center} % Fit table to page width and center it |