Skip to content

Instantly share code, notes, and snippets.

@felipevolpatto
felipevolpatto / install-ripgrep-on-ubuntu.sh
Created September 27, 2018 17:59
Install ripgrep on Ubuntu
#!/bin/bash
[[ $UID == 0 ]] || { echo "run as sudo to install"; exit 1; }
REPO="https://github.com/BurntSushi/ripgrep/releases/download/"
RG_LATEST=$(curl -sSL "https://api.github.com/repos/BurntSushi/ripgrep/releases/latest" | jq --raw-output .tag_name)
RELEASE="${RG_LATEST}/ripgrep-${RG_LATEST}-x86_64-unknown-linux-musl.tar.gz"
TMPDIR=$(mktemp -d)
cd $TMPDIR
wget -O - ${REPO}${RELEASE} | tar zxf - --strip-component=1
@felipevolpatto
felipevolpatto / SelectoresCSS.md
Created February 12, 2016 19:19
Selectores CSS