Skip to content

Instantly share code, notes, and snippets.

@kirkins
Last active July 17, 2019 19:54
Show Gist options
  • Select an option

  • Save kirkins/d161e3dfc6b17bb348ad3c39e223117a to your computer and use it in GitHub Desktop.

Select an option

Save kirkins/d161e3dfc6b17bb348ad3c39e223117a to your computer and use it in GitHub Desktop.

Revisions

  1. kirkins revised this gist Jul 17, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion random_video.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    #!/bin/bash
    printf "https://youtube.com/"
    curl https://hooktube.com/random -s -L -I -o /dev/null -w '%{url_effective}' \
    URL="https://hooktube.com/random?$((1 + RANDOM % 100000000))"
    curl $URL -s -L -I -o /dev/null -w '%{url_effective}' \
    | cut -d "/" -f 4
  2. kirkins created this gist Jul 17, 2019.
    4 changes: 4 additions & 0 deletions random_video.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/bin/bash
    printf "https://youtube.com/"
    curl https://hooktube.com/random -s -L -I -o /dev/null -w '%{url_effective}' \
    | cut -d "/" -f 4