cat <<EOF > /etc/systemd/system/wol.service
[Unit]
Description=Configure Wake On LAN
[Service]
Type=oneshot
ExecStart=/sbin/ethtool -s enp2s0 wol g
[Install]
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
| #!/usr/bin/env bash | |
| set -eu | |
| [ -z "$4" ] && echo "Usage: $0 <gc-project> <zone-name> <domain-name> <value>" && exit 1 | |
| TYPE=A | |
| PROJECT=$1 | |
| ZONE=$2 | |
| TARGET=$3 | |
| IP=$4 |
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
| import 'reflect-metadata' | |
| import {Container, Inject, Service} from "typedi"; | |
| @Service() | |
| export class Bla {} | |
| const testconfig = {} | |
| type ConfigType = typeof testconfig | |
| @Service() |
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
| process.argv.length>1 && import.meta.url.endsWith(process.argv[1]) && Promise.resolve().then(async () => { | |
| }); |
OlderNewer