Skip to content

Instantly share code, notes, and snippets.

View opplatek's full-sized avatar

Jan Oppelt opplatek

View GitHub Profile
@dmenne
dmenne / bookdowncrossreference.Rmd
Last active February 14, 2023 20:16
Markdown to HTML: Cross-references and captions for tables and figure
---
title: "Markdown to HTML: Cross-references and captions for tables and figure"
output:
bookdown::html_document2
---
Update December 2022: `gt` and `rtables` (partially) have cross-references.
And there is [`quarto`](https://quarto.org/docs/authoring/cross-references.html), not treated here, which has a much more elegant referencing syntax.
@egelev
egelev / connect_bluetooth_headphones.sh
Last active June 16, 2024 05:36
Connect bluetooth headphones on Ubuntu 18.04
#!/usr/bin/env bash
function get_headphones_index() {
echo $(pacmd list-cards | grep bluez_card -B1 | grep index | awk '{print $2}')
}
function get_headphones_mac_address() {
local temp=$(pacmd list-cards | grep bluez_card -C20 | grep 'device.string' | cut -d' ' -f 3)
temp="${temp%\"}"
temp="${temp#\"}"
@davfre
davfre / bamfilter_oneliners.md
Last active February 24, 2024 01:23
SAM and BAM filtering oneliners

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: