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
sudo find . -not -path "./minidlna*" -path -print0 | xargs -0 -i'{}' sudo chown --reference={} /media/pi/Pi/{} |
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
menuentry "ubuntu-next" { | |
set isofile="/ubuntu/wily-desktop-amd64.iso" | |
loopback loop (hd0,4)$isofile | |
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile nouveau.modeset=0 | |
initrd (loop)/casper/initrd.lz | |
} |
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
LC_ALL=C dpkg-query --showformat='${Package}:${Status}\n' -W '*' \ | |
| fgrep ':install ok installed' \ | |
| cut -d: -f1 \ | |
| (while read pkg; do | |
inst_version=$(apt-cache policy $pkg \ | |
| fgrep Installed: \ | |
| awk '{ print $2 }'); | |
origin=$(apt-cache policy "$pkg" \ | |
| fgrep " *** ${inst_version}" -C1 \ | |
| tail -n 1 \ |
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 | |
#screenWidth=$(xdpyinfo | grep dimensions | grep -o '[0-9]*' | head -n1) | |
#width=$(xdotool getactivewindow getwindowgeometry --shell | head -4 | tail -1 | sed 's/[^0-9]*//') | |
height=$(xdotool getactivewindow getwindowgeometry --shell | head -5 | tail -1 | sed 's/[^0-9]*//') | |
xdotool getactivewindow windowsize 75% "$height" | |
exit 0 |
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 | |
IFS='x' read screenWidth screenHeight < <(xdpyinfo | grep dimensions | grep -o '[0-9x]*' | head -n1) | |
width=$(xdotool getactivewindow getwindowgeometry --shell | head -4 | tail -1 | sed 's/[^0-9]*//') | |
height=$(xdotool getactivewindow getwindowgeometry --shell | head -5 | tail -1 | sed 's/[^0-9]*//') | |
newPosX=$((screenWidth/2-width/2)) | |
newPosY=$((screenHeight/2-height/2)) | |
xdotool getactivewindow windowmove "$newPosX" "$newPosY" |
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
find . -newermt "2015-01-08 17:00:00" ! -newermt "2015-01-08 19:00:00" |
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
pdftotext "input.pdf" - | sed -e "s/\x{00A0}/ /g" | tr '\n' ' ' | sed -e "s/[[:space:]]\{2,\}/ /g" | grep -oaP "(die|Baureihe|VT|VB|E|V|BR|DB)[[:space:]]*[0-9]{2,3}[[:space:]]*[0-9]*" | sed -e "s/^ *//" | sed -e "s/ *$//" | sed -e "s/^Baureihe/BR/" | sed -e "s/^die/BR/" | sort -b | uniq | tr '\n' ',' |
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
pdftotext test.pdf test.txt; sed -i 's/\xA0/ /g' test.txt |
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
exiftool -overwrite_original -Author="Autorengruppe – Modelleisenbahner" Modelleisenbahner\ -\ Autorengruppe\ -\ Modelleisenbahner\ \(Kopie\).pdf |
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
pdftk Modelleisenbahner\ -\ Autorengruppe\ -\ Modelleisenbahner\ \(Kopie\).pdf dump_data | awk '/InfoKey: Title/{getline; print}' |
NewerOlder