This file contains 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
import time | |
import requests | |
from tqdm import tqdm | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.common.action_chains import ActionChains | |
def download_video(link, destination_directory): |
This file contains 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
/**************************************** | |
* Include Libraries | |
****************************************/ | |
#include "UbidotsEsp32Mqtt.h" | |
/**************************************** | |
* Define Constants | |
****************************************/ | |
const char *UBIDOTS_TOKEN = <UBIDOTS-TOKEN>; // Insert your Ubidots TOKEN here | |
const char *WIFI_SSID = <WIFI SSID>; // Insert your Wi-Fi SSID here |
This file contains 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 | |
# Use this script to restore boot entries from a backup made by executing the command: sudo efibootmgr -v > boot_entries.txt | |
# Remember to change the name of the backup file if you named it something else. | |
# Path to the backup file containing the UEFI boot entries | |
BACKUP_FILE="bootentries.txt" | |
# Command to restore each boot entry from the backup file | |
RESTORE_CMD="sudo efibootmgr -c -w -d /dev/sda -p 1 -L \"{LABEL}\" -l \"{LOADER}\" -u {OPTIONS}" |
This file contains 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 | |
# Update the package list | |
sudo apt update | |
# Install the OpenSSH server package | |
sudo apt install -y openssh-server | |
# Enable the service | |
sudo systemctl enable ssh |
This file contains 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 | |
# Create the user | |
sudo useradd -m -s /bin/bash alex | |
# Set the password for the user | |
echo "alex:1234" | sudo chpasswd | |
# Grant sudo privileges to the user | |
sudo usermod -aG sudo alex |
This file contains 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 | |
# This script simplifies the process of renaming the NAT interface of PNetLab and EVE-NG lab files (.unl) by offering common naming options and the ability to enter a custom name. | |
# The script also includes error handling to assist users with unexpected inputs. | |
# After running the script, the original files will remain unchanged and new modified files will be created in a new directory called "renamed". | |
# To use the modified files, simply copy them back to the directory where your .unl files are stored. | |
# create renamed directory if it doesn't exist | |
if [ ! -d renamed ]; then | |
mkdir renamed | |
fi |