Skip to content
Repository of Python and Bash scripts for GNU/Linux systems
Shell Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
check_partition_space.py
check_partition_space.sh
clean_exim4.sh
connect_vps_pub_auth.sh
dd_optimal_block_size_test.sh
debian_nvidia_drivers_installation.sh
decompressor.py
extension_changer.py
file_sanitizer.py
filestrings_modifier.py
gen_shadow_hash.py
get_sites_http_status.py
influxdb_backup.sh
iptables_allowall.sh
iptables_denyall.sh
iptables_for_desktops.sh
linux_security_checks.sh
mysql_info.sh
nftrules_desktop_ipv4
nftrules_server_ipv4
ssh_paramiko_automate.py

README.md

My Tux

awesome_tux

This is a repository of Bash and Python scripts that can be useful to sysadmins and end users of GNU/Linux systems.

Scripts

In every script you will find a first section of description, usage and examples. Here is a brief summary of each one:

  • check_partition_space.sh: this script is intended to check the free space of a partition and send a notification email in case it surpasses a given threshold.

  • check_partition_space.py: same as the one before, but written in Python for Python lovers! :)

  • clean_exim4.sh: clean frozen messages, paniclogs... and start the MTA in a clean manner.

  • connect_vps_pub_auth.sh: just a script to connect a remote server using public key auth. Because I don't like to remembder where things are...

  • dd_optimal_block_size_test.sh: determine the optimal block size to write to a USB device.

  • debian_nvidia_drivers_installation.sh: automate the install of the Nvidia privative driver in Debian.

  • decompressor.py: easily decompress files with this Python script.

  • extension_changer.py: change files extensions in a folder.

  • file_sanitizer.py: compress and remove files older than X days.

  • filestrings_modifier.py: modify text strings inside a file.

  • gen_shadow_hash.py: generate /etc/shadow hashes based on a given password.

  • get_sites_http_status.py: check HTTP status of a list of websites defined in file.

  • iptables_allowall.sh: allow all communications (iptables off).

  • iptables_denyall.sh: deny all communications (only loopback allowed).

  • iptables_for_desktops.sh: common iptables rules for Linux desktops.

  • linux_security_checks.sh: check your Linux system with ClamAV, Lynis, Chkrootkit... and send the report in an email.

  • mysql_info.sh: retrieve basic information and statistics from MySQL server.

  • ssh_paramiko_automate.py: automate tasks in remote servers using paramiko.

  • influxdb_backup.sh: Create backup of a list of InfluxDB databases.

  • nftrules_desktop_ipv4.sh: nftables desktop ruleset for IPv4 network traffic.

  • nftrules_server_ipv4.sh: nftables server ruleset for IPv4 network traffic.

All the scripts have been tested in Debian, the distribution that I use as my main operating system.

I will probably upload new scripts, so stay tuned!

License

All the code in this repository is licensed under GPLv3

You can’t perform that action at this time.