Skip to content

Instantly share code, notes, and snippets.

@emigrating
emigrating / vaultwarden_backup.sh
Created May 29, 2024 07:53
Quick and dirty VW backup script. Make sure to update/check the VAULTWARDEN and STORE paths if you use this.
#!/bin/bash
TYPE='2'
VERBOSE=''
STAMP=$(date +"%Y%m%d%H%M%S")
VAULTWARDEN=/home/arnehelseth/docker/vaultwarden
STORE=/home/arnehelseth/backups/vaultwarden
FPATH=${STORE:1}
BPATH=''
@emigrating
emigrating / SmartRename.sh
Created May 16, 2024 06:30
Script to rename certain files from a #### - Title.ext format to the more common S##E## - Title.ext scheme.
#!/bin/bash
# Script to rename certain files from a #### - Title.ext format to
# the more common S##E## - Title.ext scheme.
mv_cmd=mv
function display_help {
echo "Usage: $0 [options]"
echo " -i, --infile Input file"
@emigrating
emigrating / lambda_function.py
Created August 28, 2023 07:00 — forked from matt2005/lambda_function.py
Alexa Smart Home Skill Adapter for Home Assistant
"""
Copyright 2019 Jason Hu <awaregit at gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software