Skip to content

Instantly share code, notes, and snippets.

# Installation on Dell XPS 9570
# Connect to Internet
wifi-menu
# Sync clock
timedatectl set-ntp true
# Create three partitions:
@ppacher
ppacher / sp
Created January 24, 2020 14:41 — forked from streetturtle/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/bin/bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
@ppacher
ppacher / pretty.sh
Last active January 5, 2023 23:47
Bash: Async capture stdout and stderr and colorize/prefix output
#!/bin/bash
pretty() {
prefix=$1
# a named pipe can be unlinked as soon as it has been attached to some file descriptor
# this allows to create anonymous pipes
# create a temporary named pipe
PIPE=$(mktemp -u)

Keybase proof

I hereby claim:

  • I am nethack42 on github.
  • I am ppacher (https://keybase.io/ppacher) on keybase.
  • I have a public key ASCgbVEDo-4NMdTqvFY4eTqGGkWR5yV0nxljFi92gGFhcgo

To claim this, I am signing this object: