Skip to content

Instantly share code, notes, and snippets.


Joel Hoelting joelhoelting

View GitHub Profile
joelhoelting / .vimrc
Created February 23, 2022 10:32
View .vimrc
syntax on
colorscheme industry
set number
set tabstop=4
set softtabstop=4
set autoindent
set expandtab
set cursorline
joelhoelting / youtube2mp3
Last active February 23, 2022 10:30
Youtube to mp3 script for youtube-dlp
View youtube2mp3
function convert_link_to_mp3 {
echo "$1"
if [[ -n $1 ]]; then
read -pr "Youtube link: " youtube_link
joelhoelting /
Created January 28, 2021 03:42
Cleanup all docker images, containers, volumes and networks
# Stop all containers
docker stop $(docker ps -aq)
# Remove all images (forced)
docker rmi $(docker images -q) -f
# Remove all containers
docker rm $(docker ps -aq)
joelhoelting /
Created January 28, 2021 03:35
Manage, activate and deactivate nginx conf files on server
# File:
# nginx_modsite
# Description:
# Provides a basic script to automate enabling and disabling websites found
# in the default configuration directories:
# /etc/nginx/sites-available and /etc/nginx/sites-enabled
# For easy access to this script, copy it into the directory: