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
| # https://joostvanveen.com/run-composer-1-and-2-simultaniously | |
| brew cleanup | |
| brew link --overwrite composer | |
| ln -s /usr/local/bin/composer /usr/local/bin/composer2 |
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
| // Vanilla Throttle implementation | |
| function throttle(func, wait = 100) { | |
| let timer = null; | |
| return function(...args) { | |
| if (timer === null) { | |
| timer = setTimeout(() => { | |
| func.apply(this, args); | |
| timer = null; | |
| }, wait); | |
| } |
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
| command_timeout = 1000 | |
| [character] | |
| success_symbol = "[➜](bold green) " | |
| error_symbol = "[✗](bold red) " | |
| [nodejs] | |
| format = "via [🤖 $version](bold green) " |
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
| let variables = Object.keys(window); | |
| let sortedVariables = variables.sort((a, b) => { | |
| if (a < b) return -1; | |
| else if (a > b) return 1; | |
| return 0; | |
| }); | |
| console.log(sortedVariables); |
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
| alias php:7.4 'brew unlink php && brew link php@7.4 --force --overwrite && php -v' | |
| alias php:8 'brew unlink php@7.4 && brew link php --force --overwrite && php -v' |
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
| let variables = Object.keys(window); | |
| let sortedVariables = variables.sort((a, b) => { | |
| if (a < b) return -1; | |
| else if (a > b) return 1; | |
| return 0; | |
| }); | |
| console.log(sortedVariables); |
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
| <f:format.number decimals="0" thousandsSeparator=""> | |
| <f:cObject typoscriptObjectPath="lib.math" data="{value_1}*{value_2}" /> | |
| </f:format.number> |
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
| lib.math = TEXT | |
| lib.math { | |
| current = 1 | |
| prioriCalc = 1 | |
| } |
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
| rsync -rv --include '*/' --include '*.pdf' --exclude '*' /path/to/source/ /path/to/target/ |
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
| rsync -a -P user@host:/tmp-remote/ /tmp-local/ |