Skip to content

Instantly share code, notes, and snippets.

View Willdrick's full-sized avatar

Willdrick

  • Buenos Aires, Argentina
View GitHub Profile
@Willdrick
Willdrick / copy-from-time-machine.sh
Last active October 24, 2022 22:17 — forked from vjt/copy-from-time-machine.sh
Copy data from a Time Machine volume mounted on a Linux box.
#!/bin/bash
#
# Copy data from a Time Machine volume mounted on a Linux box.
#
# Usage: copy-from-time-machine.sh <source> <target>
#
# sudo ./copy-from-time-machine.sh /media/<current-username>/<time-machine-drive-name>/Backups.backupdb/<old-mac-system-name>/Latest/<old-mac-internal-hd-name>/Users/<old-mac-user-name> <target...>
#
# source: the source directory inside a time machine backup
# target: the target directory in which to copy the reconstructed
#You need
#curl, wget, node, npm
VERSION=$(curl https://updates.counterplay.co/ | grep duelyst |grep -v staging | grep zip | tail -c 18 | head -c 6)
wget http://downloads.counterplay.co/duelyst/v$VERSION/duelyst-v$VERSION-win32-x64.zip
#remove old stuff
rm -rf Duelyst-linux-x64
#extract it
rm -rf duelyst-v$VERSION

Enable 2.1 audio output in PulseAudio

I'm using a 2.1 speakers kit from Logitec but most of the time it is always detected as 2.0... 😒

So I decided to make some research and found a solution that works everytimes (on Ubuntu based distribs).

Before patching

As you can see, my audio output is not patched.

Audio Ouput

actual-audio-output