Skip to content

Instantly share code, notes, and snippets.

View Dolfino's full-sized avatar

David N. da Silva Dolfino

View GitHub Profile
@Dolfino
Dolfino / pipewire.md
Created January 19, 2025 16:27 — forked from the-spyke/pipewire.md
Enable PipeWire on Ubuntu 22.04

Enable PipeWire on Ubuntu 22.04

This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like pipewire-debian, you might get into conflicts.

Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.

Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.

Based on Debian Wiki, but simplified for Ubuntu 22.04.

@Dolfino
Dolfino / ohmyposhv3-v2.json
Created January 1, 2022 20:34 — forked from shanselman/ohmyposhv3-v2.json
ohmyposhv3-v2
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons
@Dolfino
Dolfino / fontawesome.sty
Created October 22, 2021 14:04 — forked from phyllisstein/fontawesome.sty
FontAwesome 5.0.0-beta.6 mapping for XeLaTeX
% FontAwesome Pro 5.0.0-beta.6 (https://github.com/FortAwesome/Font-Awesome-Pro)
% bindings for XeLaTeX.
%
% Author: Honza Ustohal <[email protected]>
% (https://gist.github.com/sway/3101743)
%
% Updated for FontAwesome 5 by Daniel P. Shannon <[email protected]>.
%
% Translation of FontAwesome's private range characters into XeTeX symbols. All
% icons are camel-cased and prefixed with 'fa', i.e. what was .fa-address-book
@Dolfino
Dolfino / code.sh
Created October 7, 2021 14:16 — forked from tallguyjenks/code.sh
ZettelKasten Sync Code
# To permanently cache the credentials
git config --global credential.helper store
# To ignore files that could cause issues across different workspaces
touch .gitignore
echo ".obsidian/cache
.trash/
.DS_Store" > .gitignore
@Dolfino
Dolfino / obsidian-web-clipper.js
Created September 14, 2021 13:46 — forked from kepano/obsidian-web-clipper.js
Obsidian Bookmarklet to clip pages
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */