Once you’ve had your plugin accepted into the WordPress.org directory, there are a few steps that I’d highly recommend any developer doing before moving on. Source: Added a plugin to the WordPress directory? Here’s what to do next | David Artiss
I know many of them, but not everyone! Shame on me! Here are 40 tools for ethical hacking! Nmap: Network scanner used for network discovery and security auditing. Wireshark: Network protocol analyzer for packet inspection and troubleshooting. Metasploit: Penetration testing framework for exploiting vulnerabilities. John the Ripper: Password cracking tool for dictionary and brute-force attacks.…
Speed Up Linux Software Raid: Various commands tips to increase the speed of Linux Software RAID 0/1/5/6/10 reconstruction and rebuild time Source: 5 Tips To Speed Up Linux Software Raid Rebuilding And Re-syncing – nixCraft
The different extended pattern matching operators are listed below, where pattern-list is a list containing one or more filenames, separated using the | character:
*(pattern-list) – matches zero or more occurrences of the specified patterns
?(pattern-list) – matches zero or one occurrence of the specified patterns
+(pattern-list) – matches one or more occurrences of the specified patterns
@(pattern-list) – matches one of the specified patterns
!(pattern-list) – matches anything except one of the given patterns
To use them, enable the extglob shell option as follows:
# shopt -s extglob
1. To delete all files in a directory except filename, type the command below:
$ rm -v !("filename")
Delete All Files Except One File in Linux
2. To delete all files with the exception of filename1 and filename2:
In bash scripting, the replacement of string is important because it allows you to modify a variable and the text of a file. It also helps in file and text processing and to validate user input.
To replace a string in bash, check the following methods:
Using Parameter expansion: ${String/pattern/replacement}
Using the sed command: sed 's/pattern/replacement/' filename
Using the awk command: "input_str" | awk 'pattern { action }'
Using the perl command: perl [options] -e 'action' filename
Using the tr command: tr 'old_chars' 'new_chars' < "input_file"
Dive into the article to learn these methods of how to replace a bash string in detail.
Technical debt can cause so much frustration and burnout to development teams. Software engineers can be aware of the side effects of… Source: How To Deal With Technical Debt. Technical debt can cause so much… | by Dr Milan Milanović | Dec, 2023 | Medium
PSSH is a small Python-based program, which allows you to execute commands on multiple Linux remote servers in parallel at the same time using the single shell.