- sudo apt-get install linux-lowlatency linux-headers-lowlatency
- choose best mirrors
- open driver manager
| ################################################################################ | |
| ## | |
| ## Description: Clean zhistory script by | |
| ## Trim all lines | |
| ## Keep only lines starting with ":" and not ending with "\" | |
| ## Written by: Tanguy SALMON | |
| ## Created on: 2025/03/10 | |
| ## Last update: 2025/03/10 | |
| ## License: MIT | |
| ## |
| # | |
| # The MySQL database server configuration file. | |
| # | |
| # You can copy this to one of: | |
| # - "/etc/mysql/my.cnf" to set global options, | |
| # - "~/.my.cnf" to set user-specific options. | |
| # | |
| # One can use all long options that the program supports. | |
| # Run program with --help to get a list of available options and with | |
| # --print-defaults to see which it would actually understand and use. |
| #!/bin/bash | |
| echo "" | |
| echo "---------------------------------" | |
| echo "| AUTO COMPILE MOZJPEG |" | |
| echo "---------------------------------" | |
| echo "" | |
| echo "Apt update" | |
| sudo apt update && apt upgrade && apt remove $(deborphan) && apt autoremove && apt clean | |
| echo "Update" | |
| sudo apt update |
| # https://www.monolune.com/articles/how-to-download-a-copy-of-a-website-using-wget/ | |
| # Will scan all the webisite and save everything in some directory. | |
| wget --mirror | |
| --convert-links | |
| --adjust-extension | |
| --page-requisites | |
| --no-parent | |
| --wait=0.1 | |
| --random-wait |
| #!/bin/bash -xe | |
| # Performance tracker (MIT License) | |
| # By Lathanao (last update: 24/11/2023) | |
| # | |
| # Script work well when that has been set: | |
| # $ echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee "/etc/sudoers.d/no-more-password" | |
| # $ sudo ln -s /dir/of/Scripts/* /etc/cron.daily/ | |
| #!/bin/bash | |
| # Backup Obsidian vault (MIT License) | |
| # by Lathanao (last update: 2023/12/01) | |
| PATH_OBSIDIAN="$HOME/Documents/Obsidian_Vault" | |
| PATH_GDRIVE='/run/user/1000/gvfs/google-drive:host=gmail.com,user=you/xxxxxxxxxx' | |
| PASS="password_for_the_backup" | |
| SLUG=$(date "+%Y%m%d_%H%M%S")_$(whoami)_obsidian_vault | |
| LOG_DIR=/var/log/usercron |
| #!/bin/bash -xe | |
| # Ip tracker (MIT License) | |
| # By Lathanao (last update: 18/03/2024) | |
| # | |
| # Script work well when that has been set: | |
| # $ echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee "/etc/sudoers.d/no-more-password" | |
| # $ sudo ln -s /dir/of/Scripts/* /etc/cron.daily/ | |
| LOG_DIR=/var/log/usercron |
| #!/bin/bash +xe | |
| # Enhance performance through prefetching lookup IP in hosts file (MIT License) | |
| # by Lathanao (last update: 24/02/2024) | |
| USER=$(last | grep "login screen" | tail -n 1 | awk '{print $1}') | |
| TMP_DIR="$(mktemp -d)" | |
| PATH_HISTORY="/home/$USER/.config/chromium/Default/History" |
| alias pass='pwgen 14 1' | |
| alias passs="python -c 'import secrets; print(secrets.token_hex())'" | |
| alias passss="head -c 14 /dev/urandom | sha1sum | cut -d' ' -f1" |