Remove Page From Pdf via Commandline
install qpdf brew install qpdf check how many pages has the file qpdf --show-npages your-filename-here.pdf create new file based on page selection qpdf input.pdf --pages . 1-14,16-23 -- output.pdf
Apply Modified Date to Create
#!/bin/bash # Function to update the creation date (simulated via access and modification times) update_creation_date() { local file="$1" # Get the modified time of the file modified_time=$(stat -c %y "$file") # Format the modified time into a valid touch format (YYYYMMDDhhmm.ss) formatted_time=$(date -d "$modified_time" +"%Y%m%d%H%M.%S") echo "Updating creation date for: $file" echo "Modified time: $modified_time" echo "Formatted time: $formatted_time" # Update access and modification times to match the modified time touch -t "$formatted_time" "$file" } # Function to process all files in a directory and its subdirectories process_directory() { local directory="$1" # Find all files and loop through them find "$directory" -type f | while read -r file; do update_creation_date "$file" done } # Main script execution read -p "Enter the path to the directory: " directory_path if [[ !...
Ripping Cd With Whipper
How to rip Install whipper Install libcdio Run cd-drive Look in output for vendor, model Vendor : HL-DT-ST Model : DVDRW GX50N Revision : RR06 Visit AccurateRip DB Find your device and check the value in the column Correction Offset. Run whipper offset find -o value-from-correction-offset-column To rip cd run whipper cd rip How to configure nano ~/.config/whipper/whipper.conf
Apple Super Drive With Manjaro
Install sg3-utils Run in comamnd line cat <<- EOF | sudo tee /etc/udev/rules.d/90-mac-superdrive.rules > /dev/null # Initialise Apple SuperDrive ACTION=="add", ATTRS{idProduct}=="1500", ATTRS{idVendor}=="05ac", DRIVERS=="usb", RUN+="/usr/bin/sg_raw %r/sr%n EA 00 00 00 00 00 01" EOF
Boot Manjaro Into Commandline
Boot into terminal mode sudo systemctl set-default multi-user.target sudo reboot now Boot into graphical interface sudo systemctl set-default graphical.target sudo reboot now