This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# convert all .png in curent folder to .jpg with white background and resizing | |
find . -name "*.png" -exec convert {} -resize 1046x -background white -flatten {}.jpg \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "--- Begin deploy process ---" | |
echo "Running remote command 'cd ~/www/project; git pull'" | |
ssh [email protected] 'cd ~/www/project; git pull' | |
echo "--- Deploy complete ---" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Imagemagick analogue of Adobe Photoshop Gradient map with 75% opacity on it | |
# you will need the input.jpg file with original color image | |
# and gradient_line.png file with 256 x 1 px image of gradient | |
# make image grayscale | |
convert input.jpg -colorspace gray draft.jpg | |
# apply the gradient lut |