Skip to content

Instantly share code, notes, and snippets.

$ sudo apt-get install xclip
$ man xclip
<...>
-selection
specify which X selection to use, options are "primary" to use XA_PRIMARY (default), "secondary" for XA_SECONDARY or "clipboard" for XA_CLIPBOARD
<...>
$ xclip -i log.txt
Correct download filename when redirected with wget and curl
$ wget --content-disposition http://somesite.org/download/php?id=123123
$ curl -J -O http://somesite.org/download/php?id=123123
{ rtl_fm -M fm -l 0 -A std -p 0 -s 171k -g 40 -F 9 -f 106.2M | redsea -e 2>&1 1>&3 3>&- | jq -c . ; } 3>&1 1>&2 | aplay -r 171k -f S16_LE
echo "set enable-bracketed-paste off" >> ~/.inputrc