🧙♂️
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
function cleanTsConfig(content: string) { | |
return ( | |
content | |
// Remove comments | |
.replace( | |
/(?:\r\n|\n|^)(?:[^'"])*?(?:'(?:[^\r\n\\']|\\'|[\\]{2})*'|"(?:[^\r\n\\"]|\\"|[\\]{2})*")*?(?:[^'"])*?(\/\*(?:[\s\S]*?)\*\/|\/\/.*)/g, | |
"" | |
) | |
// Remove trailing commas | |
.replace(/,(\s+\])/gm, "$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
# using the sample command "docker stack deploy -c=docker-compose.yml stack_name" | |
# will deploy all the below services accross all of your machines, route them together, auto-scale and load-balance them. | |
version: "3.3" | |
services: | |
api: | |
image: "registry.app-maville.com/api" | |
build: "./api" | |
env_file: |
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
<script> | |
import FloatingLabelTextInput from '@/components/FloatingLabelTextInput' | |
import Button from '@/components/Button' | |
import StringUtils from '@/utils/stringUtils' | |
export default | |
{ | |
name: 'set-password', | |
render () |
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
set /P delay=" Sleep in (minutes): " | |
set /a delay=delay * 60 | |
timeout /T %delay% & rundll32.exe powrprof.dll,SetSuspendState 0,1,0 |