Skip to content

Instantly share code, notes, and snippets.

@WuglyakBolgoink
Last active April 25, 2016 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WuglyakBolgoink/30a69d824c351d4cc86260e09306341b to your computer and use it in GitHub Desktop.
Save WuglyakBolgoink/30a69d824c351d4cc86260e09306341b to your computer and use it in GitHub Desktop.
Linux: Tipps and Tricks in console
# Parse json file in bash:
mocha -R json | grep failures -m 1 | awk '{ print $2 }'
#export als json
#-------------| get only 1. line
#----------------------------------| get only second part of string
# PATH
/etc/environments
# Convert all PNG files in JPG mogrify is part of the ImageMagick suite of tools for image processing
mogrify -format jpg *.png
# Create thumbnails
mkdir thumbs
mogrify -format gif -path thumbs -thumbnail 100x100 *.jpg
# Create PDF file from images (for example from png files)
convert *.png myfile.pdf
convert 1.png 2.png myfile.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment