User:Barry

Linux Jedi Mind Tricks



 * Linux Novice - Someone who wonders what RTFM means.
 * Linux User - Someone who has tried to RTFM.
 * Windows User - Someone who has never heard RTFM.
 * Linux Guru - Someone who doesn't need to RTFM.
 * Linux Hacker - Someone who knows what isn't in TFM.
 * Linux Jedi - The one who WTFM.

Because I am an 1337 h4x0r and don't want to use anything that you n00bs might be able to understand.

Drafts
Draft62 Draft63 Draft64 Draft65 Draft66 Draft67 Draft68 Draft69 Draft70 Draft71 Draft72 Draft73 Draft74 Draft75 Draft76 Draft77 Draft78 Draft79 Draft80 Draft81 Draft82 Draft83 Draft84 Draft85 Draft86 Draft87 Draft88 Draft89 Draft90 Draft91 Draft92 Draft93 Draft94 Draft95 Draft96 Draft97 Draft98 Draft99 Draft100

Other
-
 * Asteroid names
 * Sidebar
 * PS1="-\n\u@\W:"
 * streamripper http://95.217.39.141:9125 -u 'WinAmpMPEG/5.0'
 * find -name '*.mp3' -exec mv -i {} /home/minix/Desktop/music \;
 * ffmpeg -i 1205201058.mp4 -vf scale=1280:-1 -crf 30 -preset veryslow smaller.mp4 # Reduce the resolution (preserving aspect ratio) and quality of a video from your phone to save space. In my case from 240MB to 7MB. It took about 4 minutes to process though.
 * Add an overlay.png (here: the mask) to a movie (in.mp4):
 * 1) 1⃣ ffmpeg -i in.mp4 %04d.split.png
 * 2) 2⃣ for i in *.split.png; do composite -gravity center overlay.png $i $i.png;done
 * 3) 3⃣ ffmpeg -pattern_type glob -i '*.png.png' -c:v libx264 -r 25 -pix_fmt yuv420p "out.mp4"

or


 * Transcode an audio file into a pseudo-video for upload to Twitter, using a static dummyimage.png:


 * ffmpeg -loop 1 -i dummyimage.png -i audio.mp3 -shortest -c:v libx264 -pix_fmt yuv420p -c:a aac video-for-twitter.mp4

•


 * Create high quality gifs with ffmpeg on Linux/Unix cli Make custom color palette f=in.mp4 ffmpeg -i $f -vf fps=15,scale=320:-1:flags=lanczos,palettegen p.png
 * Generate HQ gif ffmpeg -i $f -i p.png -filter_complex "fps=15,scale=300:-1:flags=lanczos[x];[x][1:v]paletteuse" out.gif


 * Change the system default editor -- sudo update-alternatives --config editor


 * Use CUPS printer management system -- localhost:631 (in a browser address bar)


 * find -name '*.txt' -exec grep -vxFf 1.txt {} \; > output.txt


 * import readline
 * readline.clear_history

Misc

 * 'find . -type f | sed 'p;s/\.js$/\.jsx/' | xargs -n2 mv'

Build a list

 * ls -1 -d vol* >list.txt

Make them ISO files

 * cat dirlist2.txt | xargs -i genisoimage -r -joliet-long -o {}.iso {}

Burn to CD

 * wodim -eject -tao speed=0 dev=/dev/sr0 -v -data vol_77.iso

Install Python module
python3 -m pip install -U scipy


 * I use awk '!a[$0]++' for unsorted uniq.