Brijesh's Git Server — scripts @ 61de3e1f809a1d0e7026b67aa77af30f32b75c2f

shell scripts, served simply

batman
Brijesh Wawdhane brijesh@wawdhane.com
Sat, 05 Oct 2024 19:08:33 +0530
commit

61de3e1f809a1d0e7026b67aa77af30f32b75c2f

3 files changed, 37 insertions(+), 0 deletions(-)

jump to
A go-x86.sh

@@ -0,0 +1,17 @@

+#!/bin/bash + +LATEST_VERSION=$(curl -s https://go.dev/dl/ | grep -oP 'go[0-9.]+\.linux-amd64\.tar\.gz' | head -n 1 | sed 's/\.linux-amd64\.tar\.gz//') + +wget https://go.dev/dl/${LATEST_VERSION}.linux-amd64.tar.gz + +sudo tar -C /usr/local -xvf ${LATEST_VERSION}.linux-amd64.tar.gz + +if ! grep -q "/usr/local/go/bin" ~/.profile; then + echo 'export PATH=$PATH:/usr/local/go/bin' >>~/.profile +fi + +source ~/.profile + +rm ${LATEST_VERSION}.linux-amd64.tar.gz + +echo "Go has been installed. Run 'source ~/.profile && go version' to verify."
A index.html

@@ -0,0 +1,17 @@

+<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>scripts.brijesh.dev</title> + <script src="https://cdn.tailwindcss.com"></script> +</head> +<body class="bg-neutral-800 text-neutral-100 flex items-center justify-center min-h-screen"> + <main class="text-center"> + <h1 class="text-2xl font-medium mb-4">scripts.brijesh.dev</h1> + <p class="mb-4">Shell scripts, served simply.</p> + <code class="bg-neutral-700 p-2 rounded">curl https://scripts.brijesh.dev/[script-name].sh | bash</code> + </main> +</body> +</html> +
A test.sh

@@ -0,0 +1,3 @@

+#!/bin/bash + +echo "hello"