I hereby claim:
- I am mmstick on github.
- I am mmstick (https://keybase.io/mmstick) on keybase.
- I have a public key whose fingerprint is 2A8C B607 A1D3 332C 18E8 6652 B273 2D42 40C9 212C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
GREEN='\e[32m' | |
RESET='\e[0m' | |
FILTER_CHAIN_DIR="${HOME}/.config/pipewire/filter-chain.conf.d" | |
FILTER_CONFIG='https://gist.githubusercontent.com/mmstick/039422a63c73a09e998d08608abaee43/raw/9c4dfef5a447fe25a47e3492e518e134e57ee9d4/7.1-spatializer.conf' | |
SOFA_RESOURCES='/usr/share/pipewire/sofa' | |
SOFA_INPUT='https://sofacoustics.org/data/database_sofa_0.6/ari/dtf%20b_nh724.sofa' | |
echo -e "${GREEN}1/3: Requesting permission to install resources to ${SOFA_RESOURCES}${RESET}" | |
sudo mkdir -p ${SOFA_RESOURCES} |
context.modules = [ | |
{ name = libpipewire-module-filter-chain | |
args = { | |
node.description = "7.1 Spatializer" | |
media.name = "7.1 Spatializer" | |
filter.graph = { | |
nodes = [ | |
{ | |
type = sofa | |
label = spatializer |
#!/bin/bash | |
set -e | |
for field in $(cat /proc/cmdline); do | |
if [[ "${field}" = root=* ]]; then | |
UUID=$(echo $field | awk -F= '{print $3}') | |
break | |
fi | |
done |
deb mirror://mirrors.ubuntu.com/mirrors.txt/ focal restricted multiverse universe main | |
deb-src mirror://mirrors.ubuntu.com/mirrors.txt/ focal restricted multiverse universe main | |
deb mirror://mirrors.ubuntu.com/mirrors.txt/ focal-updates restricted multiverse universe main | |
deb-src mirror://mirrors.ubuntu.com/mirrors.txt/ focal-updates restricted multiverse universe main | |
deb mirror://mirrors.ubuntu.com/mirrors.txt/ focal-security restricted multiverse universe main | |
deb-src mirror://mirrors.ubuntu.com/mirrors.txt/ focal-security restricted multiverse universe main | |
deb mirror://mirrors.ubuntu.com/mirrors.txt/ focal-backports restricted multiverse universe main | |
deb-src mirror://mirrors.ubuntu.com/mirrors.txt/ focal-backports restricted multiverse universe main | |
deb mirror://mirrors.ubuntu.com/mirrors.txt/ focal-proposed restricted multiverse universe main | |
deb-src mirror://mirrors.ubuntu.com/mirrors.txt/ focal-proposed restricted multiverse universe main |
#!/bin/sh | |
# Create a systemd service for the FAH client. | |
echo '[Unit] | |
Description=Folding@Home Client | |
After=network.target | |
[Service] | |
WorkingDirectory=/var/lib/fahclient | |
ExecStart=/usr/bin/FAHClient /etc/fahclient/config.xml --run-as fahclient --pid-file=/var/run/fahclient.pid |
### Keybase proof | |
I hereby claim: | |
* I am mmstick on github. | |
* I am mmstick (https://keybase.io/mmstick) on keybase. | |
* I have a public key ASB9fnv3gH4sQQcdnvwt7jGb-dD3HoKQNjSGkLU-MxdR4wo | |
To claim this, I am signing this object: |
#ifndef distinst_h | |
#define distinst_h | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
typedef enum { | |
DISTINST_FILE_SYSTEM_TYPE_NONE = 0, | |
DISTINST_FILE_SYSTEM_TYPE_BTRFS = 1, |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <errno.h> | |
#include <string.h> | |
/// A fat pointer which points to byte array of text. | |
typedef struct str { | |
uint8_t *data; | |
size_t len; |
/// Takes a pathname and shortens it for readability. | |
pub fn shorten_path(path: &Path) -> PathBuf { | |
// Attempt to strip the current working directory from the path. | |
path.strip_prefix(&env::current_dir().unwrap()) | |
// If the home directory was split, return a new `PathBuf` with "." as the replacement. | |
.map(|value| PathBuf::from(".").join(value)) | |
// If the current working directory could not be found, attempt to strip the home directory from the path. | |
.unwrap_or(path.strip_prefix(&env::home_dir().unwrap()).ok() | |
// Return the input path if the home directory was not found, otherwise prepend "~" to the path. | |
.map_or_else(|| path.to_path_buf(), |value| PathBuf::from("~").join(value))) |