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
/// <summary> | |
/// A collection of extension methods for the Task class | |
/// </summary> | |
public static class TaskExtensions | |
{ | |
/// <summary> | |
/// Introduces a delay before continuing with the next task. | |
/// This method is used for non-generic tasks (Task without a result). | |
/// </summary> |
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
#!/bin/bash | |
# Function to generate a random password | |
generate_password() { | |
echo $(openssl rand -base64 12) | |
} | |
# Ask for server name (FQDN) and validate | |
while true; do | |
read -p "Enter server name (e.g., server1.example.com): " server_name |
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
#!/bin/bash | |
# SVN Automation Script | |
# Usage: | |
# 1. Save this script to a file (e.g., svn_auto_commit.sh) | |
# 2. Make it executable by running 'chmod +x svn_auto_commit.sh' in the terminal | |
# 3. Run it to commit the changes | |
read -e -p "Enter the SVN working copy directory: " svn_dir |
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
/** | |
* This JavaScript code is designed to scrape data from a Google Scholar profile page and calculate | |
* various research indices for a researcher. It extracts information such as publication years, | |
* citations, and the h-index, and then computes several research metrics, including the R-index, | |
* A-index, G-index, M-index, E-index, AR-index, and HG-index. The code also provides statistics | |
* about the researcher's publications, total citations, h-core citations, and more. | |
* | |
* | |
* ** Usage: ** | |
* |