Shortcuts π§
Ubuntu
- Ctrl + Super + D - Hide all windows
- Ctrl + Alt + right/left arrow - Go to next/previous workspace
- Ctrl + Shift + K - kill something
- Ctrl + H - In nautilus, show/hide hidden files.
- Ctrl + Alt + Del - End session
- Ctrl + Alt + T - Launch Terminal
- Super + Q - Close Window (customized)
- Super + Alt + Z - area screenshot to clipboard (customized)
- Super + Alt + X - custom screenshot to file (customized)
- Shift + Print - area screenshot
- Alt + print - window screenshot
Gifs
Redimensionar Gifs:
-convert input.gif -coalesce temp.gif ; convert -size 1200x1200 temp.gif -resize 640x480 resized.gif
Comprimir Gifs
- convert 2011-gif_marcos.gif -fuzz 15.5% -layers Optimize output.gif
Converter gif para mp4:
- ffmpeg -i animat^C.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)2:trunc(ih/2)2" video.mp4
ou ffmpeg -f gif -i cat.gif cat.mp4
Audio π
Converte midi to mp3
- timidity 0AuraLee.mid -Ow -o - | lame - -b 64 0AuraLee2.mp3
- timidity 0AuraLee.mid -Ow -o - | ffmpeg -i - -acodec libmp3lame -ab 64k 0AuraLee1.mp3
Video π₯
Split videos:
avconv -i input.avi -vcodec copy -acodec copy -ss 00:00:00 -t 00:30:00 output1.avi (NAOTESTADO)
ffmpeg -ss 0 -t 100 -i source.m4v -vcodec copy -acodec copy part1.m4v (DEU PAU)
ffmpeg -i input.avi -vcodec copy -acodec copy -ss 00:00:00 -t 00:30:00 output1.avi (NAO TESTADO)
ffmpeg -ss 720 -i Filmes\ Caseiros\ 4-2.m4v -t 18 -vcodec copy -acodec copy output.mkv
avconv -ss seginicio -i source.mpg -t segduracao -vcodec copy -acodec copy part1.mpg
Join videos:
avconv -i "concat:part1.mpg|part1.2.mpg" -c copy full.mpg
PDFs π
Compactar \ Comprimir \ Compress PDFs
- ps2pdf arquivo.pdf - horrivel e nao compacta muito
- gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf - fica bem ruim as imagens, mas diminui em atΓ© 100x o tamanho
- gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.6 -dPDFSETTINGS=/ebook
-dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf
"input.pdf" (not tested)
- qpdf --linearize input.pdf output.pdf
- cpdf ebook test.pdf compressed.pdf cpdf Site
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dDownsampleColorImages=true -dColorImageResolution=150 -dNOPAUSE -dBATCH -sOutputFile=output.pdf input.pdf
(not tested)
- ps2pdf -dPDFSETTINGS=/ebook BiggerPdf SmallerPDF (not tested)
Remove pages from pdf
- pdftk
- pdfmod]
Converte PDFs
- convert input.pdf output.jpg
All credits to: ME