Skip to content

Instantly share code, notes, and snippets.

View d12frosted's full-sized avatar
⚠️
war time

Boris Buliga d12frosted

⚠️
war time
View GitHub Profile
(defun +org-notes-tags-read ()
"Return list of tags as set in the buffer."
(org-roam--extract-tags-prop (buffer-file-name (buffer-base-buffer))))
(defun +org-notes-tags-delete ()
"Delete a tag from current note."
(interactive)
(unless (+org-notes-buffer-p)
(user-error "Current buffer is not a note"))
(let* ((tags (+org-notes-tags-read))
@d12frosted
d12frosted / migrate_git
Created July 8, 2020 11:59
quick code migration from one repository to another
#!/usr/bin/env bash
#
# Requirements:
#
# 1. git >= 2.25
# 2. git-filter-repo
# 3. bash >= 4.0
#
# Installation:
(defun vulpea-project-p ()
"Return non-nil if current buffer has any todo entry.
TODO entries marked as done are ignored, meaning the this
function returns nil if current buffer contains only completed
tasks."
(seq-find ; (3)
(lambda (type)
(eq type 'todo))
(org-element-map ; (2)
#!/usr/bin/env bash
set -e
ACTION=$1
emacs_d=$HOME/.config/emacs
if [[ -d "$XDG_CONFIG_HOME" ]]; then
emacs_d="$XDG_CONFIG_HOME/emacs"
fi
12345lovehate
Elvira4.54.54.54.04.514
Vasyl4.74.04.83.94.734
Bohdan4.74.24.53.84.614
Maks4.64.24.84.04.614
Boris4.44.04.53.84.314
Total22.920.923.119.522.7
Mean4.584.184.623.94.54