Code snippets

From Natenoms discontinued Wiki
Jump to: navigation, search

1 Remove all accidently installed i386 packages on a Debian system

 apt-get remove $(cat /var/lib/apt/extended_states | grep -B 1 '.*:.*i386' | grep -v '.*i386' | grep -v -- '--' | cut -d':' -f 2 | sed -n -r -e 's/(.*)/\1:i386/p')

2 Screencast with ffmpeg

ffmpeg -r 30 -f x11grab -s 1920x1080 -i :0.0 -vcodec ffv1 out.avi

Codec: huffyuv

3 See also

Icons oxygen 128x128 actions go-next.png See also: Grep collection