This file contains 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
<!-- | |
$ mv samba.service /etc/avahi/services/samba.service | |
$ sudo service smbd reload | |
--> | |
<?xml version="1.0" standalone='no'?> | |
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | |
<service-group> | |
<name replace-wildcards="yes">%h</name> | |
<service> | |
<type>_smb._tcp</type> |
This file contains 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
// yarn add js-yaml react-intl @types/js-yaml | |
import yaml from 'js-yaml'; | |
import { IntlProvider } from 'react-intl'; | |
import { useEffect, useState } from 'react'; | |
import Routes from './Routes'; | |
const loadYaml = async (filePath:string) => { | |
try { | |
const response = await fetch(filePath); | |
const yamlContent = await response.text(); |
This file contains 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
# past content bellow and and reload source | |
# $ nano ~/.bash_profile | |
# $ source ~/.bash_profile | |
# Command '$ dcu container_name' alias to '$ docker compose up -d container_name' | |
# Command '$ dcs container_name' alias to '$ docker compose stop container_name' | |
execute_dcs() { | |
if [ -z "$1" ]; then | |
echo "Usage: dcs <container_name>" | |
return 1 |