Skip to content

Instantly share code, notes, and snippets.

View sudoalx's full-sized avatar
🏠
Working from home

Alexander sudoalx

🏠
Working from home
View GitHub Profile
@sudoalx
sudoalx / gotodownloader.py
Created October 29, 2023 20:16
GoTo Meeting Transcripts bulk downloader
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):
@sudoalx
sudoalx / PlantCareAutomation.ino
Last active August 18, 2023 01:06
This Gist features ESP32 code for an IoT plant monitoring system using Ubidots. It reads soil humidity, water level, and controls a pump for automated watering. Real-time data is sent to Ubidots for monitoring and control, enhancing plant care.
/****************************************
* 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
@sudoalx
sudoalx / gist:a80f02e98fbadfe67aa3e116e2b1241a
Created March 4, 2023 20:26
.Bash script to restore the UEFI boot entries from the backup file.
#!/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}"
#!/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
#!/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
@sudoalx
sudoalx / nat_renamer.sh
Last active February 23, 2023 02:58
NAT Interface Renamer for PNetLab and EVE-NG Lab Files
#!/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