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
| 3.2.53.0/24 | |
| 3.4.12.33/32 | |
| 3.4.12.34/32 | |
| 3.4.12.51/32 | |
| 3.4.12.52/32 | |
| 3.4.15.80/29 | |
| 3.4.15.160/29 | |
| 3.5.134.0/23 | |
| 3.5.136.0/22 | |
| 3.33.35.0/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
| export function assertFulfilled<T>( | |
| item: PromiseSettledResult<T>, | |
| ): item is PromiseFulfilledResult<T> { | |
| return item.status === 'fulfilled'; | |
| } |
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
| async function startTick (fn: () => Promise<any>, timeoutMs: number = 5000) { | |
| fn().then(() => { | |
| setTimeout(() => { | |
| startTick(fn, timeoutMs) | |
| }, timeoutMs) | |
| }) | |
| } |
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
| async function tryUntilSuccess (fn: () => Promise<any>, timeoutMs: number = 1000) { | |
| return new Promise((resolve) => { | |
| setTimeout(() => { | |
| fn().catch(() => tryUntilSuccess(fn, timeoutMs)).then(resolve) | |
| }, timeoutMs) | |
| }) | |
| } |
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
| all: | |
| vars: | |
| ansible_ssh_common_args: '-J [email protected]' | |
| nodes: | |
| hosts: | |
| node-1: | |
| ansible_host: 192.168.0.10 |
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
| * { | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| font-smooth: never; | |
| } |
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
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
| module.exports = { | |
| http: function(cont, options, next) { | |
| if (cont.$root.$get('nanobar.value') > 1) { | |
| return false; | |
| } | |
| cont.$root.$get('nanobar').go(20) |