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
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: test-with-shutdown | |
spec: | |
ttlSecondsAfterFinished: 200 | |
template: | |
metadata: | |
annotations: | |
dapr.io/enabled: "true" |
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
Startup script : | |
pactl load-module module-jack-sink && pactl load-module module-jack-source && pactl set-default-sink jack_out && pacmd set-default-source jack_in && pacmd list-sink-inputs | grep index | sed 's/ *index: *//g' | xargs -I{} pacmd move-sink-input "{}" jack_out | |
Shutdown script : | |
pacmd suspend false |
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
'use strict'; | |
// Why this file ? | |
// Some weird things happend on socket close : | |
// The 'close' event is call twice in some case... | |
// To search | |
const EventEmitter = require('events'); | |
const crypto = require('crypto'); | |
const https = require('https'); |