Skip to content

Instantly share code, notes, and snippets.

View tihasdop's full-sized avatar

Alexander Tomilov tihasdop

View GitHub Profile
@tihasdop
tihasdop / qnohup.sh
Last active February 6, 2023 16:18
nohup wrapper to run a command separate from the TTY and without any output
#!/bin/sh
if [ -z "$1" ] || [ "$1" = '--help' ]; then
echo 'nohup wrapper to run a program separate from the TTY' \
'and without any output'
echo
echo "Read 'man nohup' for further info"
exit 1
elif echo "$1" | grep -q '/'; then
if [ ! -f "$1" ]; then
@tihasdop
tihasdop / gif2webm.sh
Last active June 16, 2022 16:18
Converts gif image to webm (vp9) video
#!/bin/bash
# Copyright (c) 2018 Alexander Tomilov
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to