]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Link generators
authorSergey Matveev <stargrave@stargrave.org>
Mon, 31 Oct 2022 19:27:18 +0000 (22:27 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 31 Oct 2022 19:27:31 +0000 (22:27 +0300)
link-for/bin/link-for-blog [new file with mode: 0755]
link-for/bin/link-for-github-release [new file with mode: 0755]
link-for/bin/link-for-rfc [new file with mode: 0755]
link-for/bin/link-for-youtube [new file with mode: 0755]

diff --git a/link-for/bin/link-for-blog b/link-for/bin/link-for-blog
new file mode 100755 (executable)
index 0000000..75248d8
--- /dev/null
@@ -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 (executable)
index 0000000..9d32578
--- /dev/null
@@ -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 (executable)
index 0000000..36b1c69
--- /dev/null
@@ -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 (executable)
index 0000000..df29307
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo https://www.youtube.com/watch?v=$1