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 | |
| ## Royal Mail Click and Drop does not provide an option to print to combined label/invoice paper without a business account. | |
| ## This shell script uses PDFtk (PDFJam) to convert a downloaded 6x4" label to an A4 label/invoice combo document | |
| input_file=$1 | |
| base_name=$(basename $input_file) | |
| rotated_file="${base_name%.pdf}-rotated.pdf" | |
| output_file="${base_name%.pdf}-complete.pdf" |
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
| # http://stackoverflow.com/questions/5735666/execute-bash-script-from-url | |
| bash <(curl -s http://mywebsite.com/myscript.txt) | |
| # http://stackoverflow.com/questions/4642915/passing-parameters-to-bash-when-executing-a-script-fetched-by-curl | |
| curl http://foo.com/script.sh | bash -s arg1 arg2 |
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 | |
| # ============================================================================= | |
| # Author: Chu-Siang Lai / chusiang (at) drx.tw | |
| # Filename: teams-chat-post.sh | |
| # Modified: 2021-10-18 00:09 | |
| # Description: Post a message to Microsoft Teams. | |
| # Reference: | |
| # | |
| # - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025 | |
| # |