Skip to content

Instantly share code, notes, and snippets.

@ECiurleo
ECiurleo / audiobookshelf setup for Raspberry Pi - Raspbian
Last active February 26, 2024 22:59
audiobookshelf setup for Raspberry Pi - Raspbian GNU/Linux 11 (bullseye)
audiobookshelf setup for Raspberry Pi - Raspbian GNU/Linux 11 (bullseye)
@ECiurleo
ECiurleo / install_vmware_workstation_pro_17.sh
Created February 20, 2024 12:16
Install VMware Workstation Pro 17 on Ubuntu
#!/bin/bash
# Update package lists
echo "Updating package lists..."
sudo apt update
# Install build-essential, kernel headers, and dkms
echo "Installing build-essential, kernel headers, and dkms..."
sudo apt install -y build-essential linux-headers-$(uname -r) dkms
@ECiurleo
ECiurleo / Install_Plex_on_Raspbian.sh
Last active February 26, 2024 23:00
Install Plex on Raspbian / Debian
# Update package lists
sudo apt-get update && \
# Install necessary packages for HTTPS transport
sudo apt-get install apt-transport-https && \
# Add the Plex Media Server signing key
curl https://downloads.plex.tv/plex-keys/PlexSign.key | gpg --dearmor | sudo tee /usr/share/keyrings/plex-archive-keyring.gpg >/dev/null && \
# Add Plex repository to the system
echo deb [signed-by=/usr/share/keyrings/plex-archive-keyring.gpg] https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list && \
# Update package lists again with the new Plex repository
sudo apt-get update && \
@ECiurleo
ECiurleo / resizeEBSpartition.sh
Created January 23, 2023 13:13
Resize partitions for EBS volumes after you change their size in AWS
#Update the LVM partition sizes for the data disk after EBS resize
sudo pvresize /dev/nvme1n1
sudo lvextend -l +100%FREE /dev/mapper/data-lvol0
#Update the EXT4 partition sizes for the root disk after EBS resize
sudo growpart /dev/nvme0n1 1
sudo resize2fs /dev/nvme0n1p1
@ECiurleo
ECiurleo / gist:7190153d313474b6dbec
Created May 13, 2015 13:26
Selenium Window Switch
String parentHandle = driver.getWindowHandle(); // get the current window handle
driver.findElement(By.xpath("//*[@id='someXpath']")).click(); // click some link that opens a new window
for (String winHandle : driver.getWindowHandles()) {
driver.switchTo().window(winHandle); // switch focus of WebDriver to the next found window handle (that's your newly opened window)
}
//code to do something on new window
driver.close(); // close newly opened window when done with it
@ECiurleo
ECiurleo / groovySFTPfileupload
Last active November 15, 2017 18:14
SoapUI Groovy Script compatible SFTP file upload
@Grab(group='commons-net', module='commons-net', version='2.0')
@Grab(group='com.jcraft', module='jsch', version='0.1.51')
import org.apache.commons.net.ftp.FTPSClient
import com.jcraft.jsch.*;
/////////////////////////////////////////////////////////////
/////////////////////////Configs/////////////////////////////
/////////////////////////////////////////////////////////////
String ftpdomain = "yourdomain.org"