From: Sergey Matveev Date: Mon, 31 Oct 2022 19:27:18 +0000 (+0300) Subject: Link generators X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=4aa42e63cbcdb8b71e3cf0f2aa3ff271a637d6ab;p=dotfiles.git Link generators --- diff --git a/link-for/bin/link-for-blog b/link-for/bin/link-for-blog new file mode 100755 index 0000000..75248d8 --- /dev/null +++ b/link-for/bin/link-for-blog @@ -0,0 +1,3 @@ +#!/bin/sh + +echo http://blog.stargrave.org/russian/$1 diff --git a/link-for/bin/link-for-github-release b/link-for/bin/link-for-github-release new file mode 100755 index 0000000..9d32578 --- /dev/null +++ b/link-for/bin/link-for-github-release @@ -0,0 +1,6 @@ +#!/bin/sh + +account=$1 +project=$2 +tag=$3 +echo https://github.com/$account/$project/releases/download/$tag/$project-${tag#v}.tar.gz diff --git a/link-for/bin/link-for-rfc b/link-for/bin/link-for-rfc new file mode 100755 index 0000000..36b1c69 --- /dev/null +++ b/link-for/bin/link-for-rfc @@ -0,0 +1,3 @@ +#!/bin/sh + +echo https://datatracker.ietf.org/doc/html/rfc$1 diff --git a/link-for/bin/link-for-youtube b/link-for/bin/link-for-youtube new file mode 100755 index 0000000..df29307 --- /dev/null +++ b/link-for/bin/link-for-youtube @@ -0,0 +1,3 @@ +#!/bin/sh + +echo https://www.youtube.com/watch?v=$1