Skip to content

Instantly share code, notes, and snippets.

View mororor's full-sized avatar

Matthias S. mororor

  • Leipzig, Germany
View GitHub Profile
@mororor
mororor / pulseaudio_zeroconf_setup
Created March 12, 2020 20:02
setup of pulse audio zeroconf
## server setup i.e. volumio
ssh volumio@X.X.X.X # pw: volumio
apt-get uodate
apt-get install pulseaudio pulseaudio-module-zeroconf
## set /etc/pulse/damon.conf to server_daemon.cof
## set /etc/pulse/default.pa to server_default.pa
## secure by exchanging ~/.config/pulse/cookie on both sides

Keybase proof

I hereby claim:

  • I am mororor on github.
  • I am mororor (https://keybase.io/mororor) on keybase.
  • I have a public key whose fingerprint is 46C0 D047 EC8A 6C9F D164 31E6 7507 3076 4893 7D65

To claim this, I am signing this object:

@mororor
mororor / structureProblem
Last active February 25, 2019 15:02
authorizeWriter rewrite
async authorizeWriter (key, writerKey, structures) {
if (!structures) return this.authorizeWriter(key, writerKey, [key])
let library = await getLibrary(this.session)
let archive = await library.getArchive(key)
let results = []
for (let i of structures) {
let structure = archive.structures.get(i)
console.log(structure)
results.push(structure.authorizeWriter(writerKey))
}