Opengist

Explore

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

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
b

bash

Recently created Least recently created Recently updated Least recently updated
airikr

airikr / Compress MKV and MP4 to MP4 with options

Last active 6 months ago ai ai-generated bash compress linux mkv mp4 video

Created by ChatGPT, but not the first comment section.

0 0 1
1 #!/usr/bin/env bash
2
3 ##########################################################################
4 #
5 # This bash script was written by ChatGPT, but not this comment section.
6 # Everything works after testing, but not 2 functions:
7 # - Adding metadata to compressed MP4 file.
8 # - Checking if the file has already been compressed by this script.
9 #
10 # However, I have done some fine tuning like adding new rows.
airikr

airikr / Update Docker images/containers

Last active 6 months ago bash linux

TODO: check if the image is up-to-date or not.

0 0 1
1 #!/bin/bash
2 declare -a arr=("snikket")
3
4 for i in "${arr[@]}"
5 do
6 if [ "$i" = "snikket" ]
7 then
8 echo
9 echo "snikket"
10 echo
airikr

airikr / Download videos from YouTube (not AI, my own)

Last active 6 months ago bash linux youtube yt-dlp

This script downloads videos from 7 days to today from selected YouTube channels. Downloaded videos will be logged in download.txt to prevent re-downloading them.

0 0 1
1 #!/bin/bash
2 path="/path/to/youtube-folder"
3
4 sudo chown -R user:user "${path}"
5
6 yt-dlp --config-location "ytdlp-config.txt" -a "${path}/channels.txt"
7
8 echo
9 echo "Deleting JSON files"
10 echo