Skip to content

Instantly share code, notes, and snippets.

View ostechnix's full-sized avatar

Senthilkumar Palani ostechnix

View GitHub Profile
@ostechnix
ostechnix / chrootmnt.sh
Created December 30, 2024 09:51
Chrootmnt: A Bash script to mount and unmount /dev inside a chroot environment.
#!/usr/bin/env bash
# ------------------------------------------------------------------
# Script Name: chrootmnt.sh
# Description: A Bash script to mount and unmount /dev
# inside a chroot environment
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: ./chrootmnt.sh /path/to/chroot command args
# ------------------------------------------------------------------
@ostechnix
ostechnix / audiogenipy.py
Last active January 7, 2025 06:58
Audiogenipy - A Python Script to Create an Audiobook from a Text File using Python and gTTS in Linux, macOS and Windows.
#!/usr/bin/env python3
# ------------------------------------------------------------------
# Script Name: Audiogenipy
# Description: A Python Script to Create an Audiobook
# from a Text File using Python and gTTS.
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: python audiogenipy.py
# ------------------------------------------------------------------
@ostechnix
ostechnix / diskinfo.sh
Created November 29, 2024 12:01
DiskInfo: A Bash Script to Gather Comprehensive Disk Information on Linux
#!/usr/bin/env bash
# ------------------------------------------------------------------
# Script Name: DiskInfo
# Description: A Bash Script to gather comprehensive
# Disk information on Linux.
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: ./diskinfo.sh
# ------------------------------------------------------------------
@ostechnix
ostechnix / debpostinstall.sh
Last active September 8, 2024 01:58
DebPostInstall: Debian and Ubuntu Post Install Bash Script
#!/usr/bin/env bash
# ------------------------------------------------------------------
# Script Name: DebPostInstall
# Description: A Bash Script to automate essential
# post-installation tasks on Debian and Ubuntu
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: sudo ./debpostinstall.sh
# ------------------------------------------------------------------
@ostechnix
ostechnix / pdfcwcount.py
Created August 13, 2024 06:20
Pdfcwcount - A Simple Python Script to Count the Total Number of Characters and Words in a PDF File.
#!/usr/bin/env python3
# ------------------------------------------------------------------
# Script Name: pdfcwcount.py
# Description: A Python Script to Count Characters and Words
# in a PDF File.
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: python pdfcwcount.py filename
# ------------------------------------------------------------------
@ostechnix
ostechnix / txtcwcount.py
Last active August 8, 2024 13:57
Txtcwcount - A Simple Python Script to Count Characters and Words in a Plain Text File.
#!/usr/bin/env python
# ------------------------------------------------------------------
# Script Name: txtcwcount.py
# Description: A Python Script to Count Characters and Words
# in a Plain Text File.
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: python txtcwcount.py filename
# ------------------------------------------------------------------
@ostechnix
ostechnix / filecp.sh
Created July 11, 2024 11:03
Filecp - A Simple Bash Script to Copy Files from One Location to Another
#!/usr/bin/env bash
# ------------------------------------------------------------------
# Script Name: filecp.sh
# Description: A Bash Script to Copy Files
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: sudo ./filecp.sh
# ------------------------------------------------------------------
@ostechnix
ostechnix / deloldfile.sh
Last active July 11, 2024 11:45
DelOldFile - A Bash Script to Find and Remove all Log Files older than 30 days
#!/usr/bin/env bash
# ------------------------------------------------------------------
# Script Name: deloldfile.sh
# Description: Remove all Log Files older than 30 days
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: sudo ./deloldfile.sh
# ------------------------------------------------------------------
@ostechnix
ostechnix / debupdate.sh
Created July 11, 2024 10:56
Debupdate - An Interactive Bash Shell Script to Update a Debian-based System
#!/usr/bin/env bash
# ------------------------------------------------------------------
# Script Name: debupdate.sh
# Description: An Interactive Bash Shell Script to
# Update a Debian-based System
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: sudo ./debupdate.sh
# ------------------------------------------------------------------
@ostechnix
ostechnix / enablebackports.sh
Last active June 26, 2024 12:43
EnableBackports - A Bash Script to check and enable Backports repoistory in Debian Linux.
#!/usr/bin/env bash
# ------------------------------------------------------------------
# Script Name: enablebackports.sh
# Description: A Bash Script to check and enable Backports
# repository in Debian Linux.
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: sudo ./enablebackports.sh
# ------------------------------------------------------------------