Skip to content

Instantly share code, notes, and snippets.

@rc2dev
rc2dev / nitrogen
Last active August 18, 2022 23:21
Wrapper for nitrogen, so LightDM wallpaper is synced (https://rafaelc.org/posts/sync-wm-wallpaper-with-lightdm-on-linux-mint/). Previously tracked on my dotfiles repository.
#!/usr/bin/env bash
#
# Wrapper for nitrogen, so LightDM wallpaper is synced.
#
# Copyright (C) 2021 Rafael Cavalcanti <https://rafaelc.org/dev>
# Licensed under GPLv3
set -euo pipefail
/usr/bin/nitrogen "$@"
@rc2dev
rc2dev / send2phone
Last active December 20, 2022 18:16
Send files to your phone from file manager (https://rafaelc.org/posts/send-files-to-your-phone-from-file-manager/). Previously tracked on my dotfiles repository.
#!/bin/bash
#
# Send files to phone.
# It's a wrapper around KDE Connect CLI to provide
# a bit more functionality.
#
# Copyright (C) 2019-2021 Rafael Cavalcanti <https://rafaelc.org/dev>
# Licensed under GPLv3
readonly script_name="$(basename "$0")"
@rc2dev
rc2dev / tan
Last active July 10, 2023 20:10
Helper for adding annotations to TaskWarrior tasks (https://rafaelc.org/posts/multi-line-annotations-on-taskwarrior/).
#!/usr/bin/env bash
#
# Helper for adding annotations to TaskWarrior tasks.
# Features:
# - Add multi-line annotations to your tasks using your preferred editor.
# - Add single-line annotations as always (via cli arguments) or using the editor.
#
# Copyright (C) 2021 Rafael Cavalcanti <https://rafaelc.org/dev>
# Copyright (C) 2016 djp <djp@cutter>
#
@rc2dev
rc2dev / backup-from-yt
Last active March 31, 2024 19:32
Backup all youtube playlists from a channel into a git repo in json (https://rafaelc.org/posts/backup-your-youtube-playlists-in-json-with-git/).
#!/usr/bin/env bash
#
# Backup all playlists from a channel into a git repo in json.
#
# Dependencies:
# - jq
# - git
# - yt-dlp
#
# Copyright (C) 2021 Rafael Cavalcanti <https://rafaelc.org/dev>