| Keys | Action |
|---|---|
| TAB CTRL+i |
Autocomplete |
| CTRL+u | Delete everything from the cursor position to the beginning of the line |
| CTRL+k | Delete everything from the cursor position to the end of the line |
| CTRL+w | Delete the word before the cursor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| # Apply to project: Place in the project root directory | |
| # Apply globally: Place in ~/ | |
| Language: Cpp | |
| BasedOnStyle: Google | |
| ColumnLimit: 120 | |
| IndentWidth: 4 | |
| TabWidth: 4 | |
| PointerAlignment: Right | |
| AllowShortBlocksOnASingleLine: Never |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Steven Black Hosts Updater | |
| This script automates the process of updating the system's hosts file using | |
| the curated lists provided by Steven Black in https://github.com/StevenBlack/hosts | |
| Requirements: | |
| 1. A Steven Black hosts file in /etc/hosts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Apply to project: Place in the project root directory | |
| # Apply globally: Place in ~/.config/ruff/pyproject.toml or ~/.config/ruff.toml | |
| [tool.ruff] | |
| line-length = 120 | |
| [tool.ruff.lint] | |
| # "E" (pycodestyle), "F" (Pyflakes), "I" (isort) | |
| select = ["E", "F", "I"] | |
| ignore = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| TV Show Renamer: A utility to normalize TV show filenames. | |
| This script automates the tedious process of renaming video files from messy | |
| tracker formats (e.g., 'Show.Name.S01E01.720p.x264-Group.mkv') into a clean, | |
| standardized structure (e.g., 'Show Name S01E01.mkv'). | |
| KEY FEATURES: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| A very lightweight Python script to download torrent files (less than X days old) from the https://showrss.info feed. | |
| Requirements: | |
| - feedparser | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Optimized rTorrent configuration template with automated directory provisioning, | |
| # disk space monitoring, ratio control (for public and private trackers) | |
| # and handling of .torrent and [in]complete downloaded files. | |
| # | |
| # Automations: | |
| # | |
| # - Disk management | |
| # | |
| # - Create instance directories | |
| # - Set restrictive file permissions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Bash script to find users who have never logged into the system | |
| while IFS=: read -r username _ ; do | |
| last_login=$(lastlog -u "$username" | tail -n 1 | awk '{print $5}') | |
| if [[ -z "$last_login" ]]; then | |
| echo "User \"""$username\""" has never logged in" | |
| fi |
NewerOlder