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 | |
| # Optimize images for talk slides | |
| # Run in directory with images, it does the following: | |
| # 1. runs zopfli on all PNGs | |
| # 2. runs guetzli on all JPEGs | |
| # 3. creates lossy and lossless WebP, keeps the smaller one | |
| # 4. keeps the WebP if smaller than original | |
| GREEN=$(tput setaf 2) |
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
| List of regions your project is served from when you deploy using surge. | |
| yyz.surge.sh : 159.203.50.177 : CA : Toronto | |
| jfk.surge.sh : 159.203.159.100 : US : New York | |
| sfo.surge.sh : 138.197.235.123 : US : San Francisco | |
| lhr.surge.sh : 46.101.67.123 : GB : London | |
| ams.surge.sh : 188.166.132.94 : NL : Amsterdam | |
| fra.surge.sh : 138.68.112.220 : DE : Frankfurt | |
| sgp.surge.sh : 139.59.195.30 : SG : Singapore |