Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 76ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
s

script

Recently created Least recently created Recently updated Least recently updated
jackz

jackz / ytdl-bulk

Last active 1 month ago script ytdl

acquires links from stdin, downloads with yt-dlp and then rsyncs to media folder

0 0 1
1 #!/bin/sh
2 set -e
3 TMP_PATH=/tmp/yt-dl #$(mktemp -d)
4 mkdir $TMP_PATH || true
5 DEST=/mnt/hs2/main/media/storage/music/
6
7 # Exit if the temp directory wasn't created successfully.
8 if [ ! -e "$TMP_PATH" ]; then
9 >&2 echo "Failed to create temp directory"
10 exit 1
jackz

jackz / steamcmd update script

Last active 2 months ago script steam

Updates game folder with steamcmd, with locking

0 0 1
1 #!/bin/bash
2 APPID=222860
3 STEAMCMD_PATH=~/steamcmd/steamcmd.sh
4 if test -f "update.lock"; then
5 echo "update.lock found, cancelling"
6 exit 1
7 fi
8 touch update.lock
9 trap '{ rm -f -- "update.lock"; }' EXIT
10 # Due to some new steamcmd bugs, you cannot install the game except for windows. Valve doesn't seem like they will fix this