by xero updated 10.29.24
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 | |
| # Improved as per feedback from @pascal - https://gist.github.com/julianxhokaxhiu/c0a8e813eabf9d6d9873#gistcomment-3086462 | |
| find . -type f -iname "*.png" -exec optipng -nb -nc {} \; | |
| find . -type f -iname "*.png" -exec advpng -z4 {} \; | |
| find . -type f -iname "*.png" -exec pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time -ow {} \; | |
| find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" \) -exec jpegoptim -f --strip-all {} \; |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
- Create a bare clone of the repository.
(This is temporary and will be removed so just do it wherever.)
git clone --bare git@github.com:usi-systems/easytrace.git
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
| #!/usr/bin/env bash | |
| remote="upstream" | |
| url=$(LANG=C git remote -v get-url $remote 2>&1) | |
| if [[ "$url" == fatal* || "$url" == error* ]]; then | |
| remote="origin" | |
| url=$(LANG=C git remote -v get-url $remote 2>&1) | |
| fi | |
| if [[ "$url" == fatal* || "$url" == error* ]]; then |
- Tired of boring default font in Minetest?
- Have the text become increasingly harder to read?
- Does the current font wear you off, stealing all your concentration?
- Do you want one that you can recommended to anyone else, for any language?
Try something different, with this guide! Showing you how to setup a few beatiful fonts for Minetest today.
