Skip to content

Instantly share code, notes, and snippets.

View ostechnix's full-sized avatar

Senthilkumar Palani ostechnix

View GitHub Profile
@ostechnix
ostechnix / dpkg-repo-query.sh
Last active March 14, 2025 13:13
A Bash Script to Check the Availability of a Package in official Debian and Ubuntu Repositories.
#!/usr/bin/env bash
# ------------------------------------------------------------------
# Script Name: dpkg-repo-query.sh
# Description: Checks the availability of a package in official
# Debian and Ubuntu repositories via their websites.
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: chmod +x dpkg-repo-query.sh
# ./dpkg-repo-query.sh
@ostechnix
ostechnix / tmux.md
Created November 1, 2023 06:20 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@ostechnix
ostechnix / useful_pandas_snippets.md
Created November 1, 2023 07:11 — forked from bsweger/useful_pandas_snippets.md
Useful Pandas Snippets

Useful Pandas Snippets

A personal diary of DataFrame munging over the years.

Data Types and Conversion

Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)

@ostechnix
ostechnix / nmcli_remote_ip_changer.sh
Created November 2, 2023 12:25
A Bash Script to Assign IP Address to a Remote Linux System via SSH using nmcli Command.
#!/usr/bin/env bash
# ------------------------------------------------------------------
# Script Name: nmcli_remote_ip_changer.sh
# Description: A Bash Script to Assign IP Address to a
# Remote Linux System via SSH using nmcli Command.
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: chmod +x nmcli_remote_ip_changer.sh
# ./nmcli_remote_ip_changer.sh
@ostechnix
ostechnix / cfa.py
Last active November 25, 2023 13:46
Command Frequency Analyzer (CFA) - A simple Python script to display either the most frequently or least frequently used commands in Linux.
import os
from collections import Counter
def get_history_file():
shell = os.path.basename(os.getenv('SHELL'))
if shell == 'bash':
return os.path.expanduser('~/.bash_history'), 'bash'
elif shell == 'zsh':
return os.path.expanduser('~/.zsh_history'), 'zsh'
@ostechnix
ostechnix / README.md
Last active December 25, 2025 20:22
Bashmastree: A Bash Script to Display an Animated Christmas Tree in a Linux Terminal

BashmasTree 🎄

Animated Christmas tree for your terminal!

Versions

🎄 2026 Version (RECOMMENDED)

  • Fully responsive to terminal resizing
  • Animated falling snow
  • Enhanced decorations
@ostechnix
ostechnix / showipaddr.sh
Last active January 15, 2025 07:59
Show IP Address - A BASH Script to Show Private and Public IP Address Information in Linux and Unix.
#!/usr/bin/env bash
# ------------------------------------------------------------------
# Script Name: showipaddr.sh
# Description: A Bash Script to display Private and
# Public IP address details in Linux and Unix.
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: chmod +x showipaddr.sh
# ./showipaddr.sh
@ostechnix
ostechnix / showipaddr.py
Last active November 14, 2024 03:30
Show IP Address - A Python Script to Show Private and Public IP Information in Linux and Unix.
#!/usr/bin/env python
# ------------------------------------------------------------------
# Script Name: showipaddr.py
# Description: A Python Script to display Private and
# Public IP address details in Linux and Unix.
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: python showipaddr.py
# ------------------------------------------------------------------
@ostechnix
ostechnix / enablebackports.sh
Last active March 10, 2025 17:19
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
# ------------------------------------------------------------------
@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
# ------------------------------------------------------------------