Skip to content

Instantly share code, notes, and snippets.

View cesarolea's full-sized avatar

César Olea cesarolea

View GitHub Profile
@cesarolea
cesarolea / choosy
Created February 7, 2020 22:42
Open browser based off of certain rules (like choosy for macOS)
#!/bin/bash
URL=$1
DOMAIN=$(echo "$URL" | awk -F[/:] '{print $4}')
## Domain starts with
if [[ $DOMAIN =~ $(echo ^\($(paste -sd'|' /home/your-user/.config/url-start.txt)\)$) ]]; then
chromium-browser "$URL" & disown
elif [[ $DOMAIN =~ $(echo ^\($(paste -sd'|' /home/your-user/.config/url-is.txt)\)$) ]]; then
firefox "$URL" & disown
@cesarolea
cesarolea / keybase.md
Created August 4, 2016 18:38
keybase.md

Keybase proof

I hereby claim:

  • I am cesarolea on github.
  • I am cesarolea (https://keybase.io/cesarolea) on keybase.
  • I have a public key whose fingerprint is DFB5 1BAF 464E ED9D 6B39 7E63 2A6A A95D 208C 4CD7

To claim this, I am signing this object: