mirror of https://github.com/CrimsonTome/tldr.git
Added ffmpeg, haxelib, Matt's Traceroute and imagemagick convert.
parent
b25008440e
commit
66b8ce3fc6
|
@ -0,0 +1,15 @@
|
||||||
|
# convert
|
||||||
|
|
||||||
|
> Imagemagick image conversion tool
|
||||||
|
|
||||||
|
- Convert an image from JPG to PNG
|
||||||
|
|
||||||
|
`convert {{image.jpg}} {{image.png}}`
|
||||||
|
|
||||||
|
- Scale an image 50% it's original size
|
||||||
|
|
||||||
|
`convert {{image.png}} -resize 50% {{image2.png}}`
|
||||||
|
|
||||||
|
- Horizontally append images
|
||||||
|
|
||||||
|
`convert {{image1.png}} {{image2.png}} {{image3.png}} +append {{image123.png}}`
|
|
@ -0,0 +1,19 @@
|
||||||
|
# ffmpeg
|
||||||
|
|
||||||
|
> Video conversion tool
|
||||||
|
|
||||||
|
- Extract the sound from a video and save it as MP3
|
||||||
|
|
||||||
|
`ffmpeg -i {{video-filename}} -vn -ar 44100 -ac 2 -ab 192 -f mp3 {{sound.mp3}}`
|
||||||
|
|
||||||
|
- Convert frames from a video into individual numbered images
|
||||||
|
|
||||||
|
`ffmpeg -i {{video-filename}} {{image%d.png}}`
|
||||||
|
|
||||||
|
- Combine numbered images (image1.jpg, image2.jpg, etc) into a video
|
||||||
|
|
||||||
|
`ffmpeg -f image2 -i {{image%d.jpg}} {{video.mpg}}`
|
||||||
|
|
||||||
|
- Convert AVI video to MP4. AAC Audio @ 128kbit, Video @ 1250Kbit
|
||||||
|
|
||||||
|
`ffmpeg -i {{in.avi}} -acodec libfaac -ab 128k -vcodec mpeg4 -b 1250K {{out.mp4}}`
|
|
@ -0,0 +1,19 @@
|
||||||
|
# haxelib
|
||||||
|
|
||||||
|
> Haxe Library Manager
|
||||||
|
|
||||||
|
- Search for a Haxe library
|
||||||
|
|
||||||
|
`haxelib search {{keyword}}`
|
||||||
|
|
||||||
|
- Install a Haxe library
|
||||||
|
|
||||||
|
`haxelib install {{libname}}`
|
||||||
|
|
||||||
|
- Upgrade all installed Haxe libraries
|
||||||
|
|
||||||
|
`haxelib upgrade`
|
||||||
|
|
||||||
|
- Install the development version of a library from a Git repository
|
||||||
|
|
||||||
|
`haxelib git {{libname}} {{GIT-URL}}`
|
|
@ -0,0 +1,19 @@
|
||||||
|
# mtr
|
||||||
|
|
||||||
|
> Combined traceroute and ping tool
|
||||||
|
|
||||||
|
- Traceroute to a host and continuously ping all intermediary hops
|
||||||
|
|
||||||
|
`mtr {{host}}`
|
||||||
|
|
||||||
|
- Disable IP address and host name mapping
|
||||||
|
|
||||||
|
`mtr -n {{host}}`
|
||||||
|
|
||||||
|
- Generate output after pinging each hop 10 times
|
||||||
|
|
||||||
|
`mtr -w {{host}}`
|
||||||
|
|
||||||
|
- Force IP IPv4 or IPV6
|
||||||
|
|
||||||
|
`mtr -4 {{host}}`
|
Loading…
Reference in New Issue