various

diet

============ LINUX ========================

Tivo command: tivodecode --mak 0019514911 -o output.mpg input.TiVo

go to: https://192.168.1.147/ ... (need https for login)

Tivo command: tivodecode --mak 5936772111 -o output.mpg input.TiVo

go to: https://192.168.1.104/ ... (need https for login)

mp3 command:

    • find /media/ -name *.wav -exec lame {} {}.cd01.mp3 \;

    • find /media/ -name *.mp4 -exec ffmpeg -i {} -vol 4000 {}.mp3 \;

ffmpeg command

    • link: http://www.ffmpeg.org/

      • extract part of video: ffmpeg.exe -i input.file.mp4 -target ntsc-dvd -ss 00:00:00 -t 00:05:00 output.file.START.00.00-DURATION.05.00.mpg

    • best format, default: ffmpeg.exe -i input.file.mp4 -ss 00:00:00 -t 00:05:00 output.file.START.00.00-DURATION.05.00.mp4

    • pictures

      • ffmpeg -y -an -qscale 0 -f image2 -r 0.22 x_%05d.jpg -i VIDEO_20141212_170906.mp4

      • montage.exe -geometry +0+0 x*.jpg VIDEO_20141212_170906.collage.3x3.jpg

copy command:

    • cp -ruv /source/. /destination/

rsync command:

    • First copy

    • rsync -avh --progress sourceDirectory destinationDirectory

    • ......

    • ... copy from source to target (a-archive, v-verbose)

    • cp -vnr /media/lubuntu/Elements/. /media/lubuntu/backup/

    • rsync --progress

    • rsync -avu --info=progress2 --delete --force --ignore-errors /media/FIRELITE/. /media/Elements/ >> /media/YDRIVE/delete/rsync.log.`date +%Y%m%d`.`date +%H%M%S`.txt

    • rsync -avu --delete --force --ignore-errors /var/www/html/public_html/syncmin.source/. /var/www/html/public_html/webcams/archiwum/minione/ostatni.tydzien/ >> rsync.log.`date +%Y%m%d`.`date +%H%M%S`.txt

      • a - archive / copy

      • u - update, only work on changed files

      • v - verbose, for output into a file

      • r - copy directories recursively ... but seems to work okay without it

      • --delete files obsolete on the destination folder

      • --force force deletion of directories even if empty

      • --ignore-errors

      • > use to put output into file

      • >> use to append output into file

Compare directories

    • diff /media/mint/Elements /media/mint/Elements1 > /media/mint/diff.log.`date +%Y%m%d`.`date +%H%M%S`.txt

Count number of files

    • find /media/mint/Elements -type f -maxdepth 3 | wc -l

    • Go to folder

      • find . | wc -l

      • du -sb

    • Check files for subdirectory from current folder, whatever it is

      • find ./folder/ -type f | wc -l

Find files

    • find /folder/. -name '*file.name*'

Find lagers files / directories

    • See directories / folders, set depth to 1 and sort from smallest to largest

      • du -d 1 | sort -n

    • See large files

      • find . -printf '%s %p\n' | sort -nr

      • find . -printf '%s %p\n' | sort -nr | head -10

Find most recent files

    • find -type f -printf "%T@ %Tc %s %p\n" | sort -n | cut -d' ' -f 2- | tail -n 50

    • find -type f -printf "%T@ %Tc %p __________(%s)\n" | sort -n | cut -d' ' -f 2- | tail -n 50

How to kill process

    • list programs: ps ux | more

    • kill: ps -9 [PID number]

      • -9 for execute

Ip addresses on the network

    • nmap -sn -PU 192.168.0.0/24

clone disk

  • sudo dd if=/dev/sda3 bs=32M status=progress conv=sync,noerror of=/media/lubuntu/92821CE6821CD099/sda3_32M.img

  • sudo dd if=/media/lubuntu/92821CE6821CD099/sda3_32M.img bs=32M status=progress conv=sync,noerror of=/dev/sda3

monitor network traffic

  • ip link show

  • nload eth0 eth1

===================================

website

Calculators

Unit converters

File converters

Smartphones

Smartphone Apps

Yard sales

Official time

Bajki dla dzieki

Polls

Movies at ECU

Pitt County Schools

House prices

Video DVD creation

    • create DVD

      • use ffmpeg with command: ffmpeg.exe -i input.file.mp4 -target ntsc-dvd output.file.mpg

    • use cdrtfe, Video DVD tab, create folder with mpg file, and select folder, then Actions: Start

    • notes

      • when ffmpeg does not want to run try setting compatibility to Windows XP, 3nd

Browser extensions

https://lucasgrodner.blogspot.com/