linux:linux_hacks
Table of Contents
Linux hacks
Merge 2 PDFs together from Nautilus
http://gnome-look.org/content/show.php/?content=83871 requires pdftk https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
#!/bin/bash ifs=$IFS IFS='\ ' PDFARGUMENTS="" fpaths=`echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | sort` for file in $fpaths do if [ -f "$file" ]; then base=${file%.*} ext=${file##*.} if [ "$ext" == "pdf" ]; then PDFARGUMENTS="$PDFARGUMENTS \"$file\"" pdfdir=`dirname "$file"` fi fi done szSavePath=$(zenity --file-selection --save --confirm-overwrite);echo "$szSavePath" if [ -n "$PDFARGUMENTS" ]; then eval pdftk "$PDFARGUMENTS" cat output "\"$szSavePath\"" fi IFS=$ifs
Mount dag server
sudo mount -t cifs -o username=<username>,password=<password>,domain=DPZ //storage2/DPZ/KognitiveNeurowissenschaften/DAG /mnt/<local> Install "cifs-utils" (sudo apt install cifs-utils)
linux/linux_hacks.txt · Last modified: 2022/12/29 07:15 by 127.0.0.1