Skip to content

Instantly share code, notes, and snippets.

View k-f-'s full-sized avatar
🙃

Kyle Fring k-f-

🙃
View GitHub Profile
@k-f-
k-f- / Moving_gpg_keys.txt
Created January 1, 2022 16:06 — forked from chrisswanda/Moving_gpg_keys.txt
Moving GPG keys to new machine
Mac and Linux work the same, storing the keys in ~/.gnupg. The safest way to transfer the files is using scp (part of ssh):
To copy from your local machine to another:
scp -rp ~/.gnupg othermachine:
To copy from a remote machine to your local:
scp -r othermachine:~/.gnupg ~
If you're on the machine that already has the key:
@k-f-
k-f- / rsync_git_repo.reference
Last active April 11, 2021 15:18
rsync exclude. (copying old repo into a new git branch without making a mess)
rsync -av --progress {source} /{destination} --exclude .git
@k-f-
k-f- / blog.org
Last active May 13, 2020 15:40
ox-hugo question

POST TITLE 1

Content

POST TITLE 2

[source: ~/extra-content.org/BLOGSUBJECT/]

@k-f-
k-f- / config.el
Created February 1, 2019 23:01
offending function
;; code to add and remove a starred tag to elfeed article
;; based on http://matt.hackinghistory.ca/2015/11/22/elfeed/
;; http://pragmaticemacs.com/emacs/star-and-unstar-articles-in-elfeed/#disqus_thread
;; more concise version from user: Galrog. Slick.
(defalias 'elfeed-toggle-star
(elfeed-expose #'elfeed-search-toggle-all 'star))
(eval-after-load 'elfeed-search
'(define-key elfeed-search-mode-map (kbd "m") 'elfeed-toggle-star))
;; tried *, but m requires one less hand and is closer to the "n" key which were using constantly in this mode.
@k-f-
k-f- / init.el
Created February 1, 2019 22:59
Symbol's function definition is void: elfeed-expose
Debugger entered--Lisp error: (void-function elfeed-expose)
(elfeed-expose (function elfeed-search-toggle-all) 'star)
(defalias 'elfeed-toggle-star (elfeed-expose (function elfeed-search-toggle-all) 'star))
eval-buffer(#<buffer *load*-366949> nil "/home/kef/.emacs.d/config.el" nil t) ; Reading at buffer position 14020
load-with-code-conversion("/home/kef/.emacs.d/config.el" "/home/kef/.emacs.d/config.el" nil nil)
load("/home/kef/.emacs.d/config.el" nil nil t)
load-file("~/.emacs.d/config.el")
org-babel-load-file("~/.emacs.d/config.org")
eval-buffer(#<buffer *load*> nil "/home/kef/.emacs.d/init.el" nil t) ; Reading at buffer position 1538
load-with-code-conversion("/home/kef/.emacs.d/init.el" "/home/kef/.emacs.d/init.el" t t)
@k-f-
k-f- / drac-pyg
Created January 27, 2015 23:07
dracula pygments
.highlight .hll { background-color: #ffffcc; }
.highlight { background: #282a36; color: #f8f8f2; background-color: #282a36; }
.highlight .c { color: #6272a4; background-color: #282a36; } /* Comment */
.highlight .err { color: #f8f8f2; background-color: #282a36; } /* Error */
.highlight .g { color: #f8f8f2; background-color: #282a36; } /* Generic */
.highlight .k { color: #ff79c6; background-color: #282a36; } /* Keyword */
.highlight .l { color: #f8f8f2; background-color: #282a36; } /* Literal */
.highlight .n { color: #f8f8f2; background-color: #282a36; } /* Name */
.highlight .o { color: #f8f8f2; background-color: #282a36; } /* Operator */
.highlight .x { color: #f8f8f2; background-color: #282a36; } /* Other */
@k-f-
k-f- / beets-error.log
Created January 18, 2015 22:09
beets [sqlite]
#### Have a dozen or so of these from different albums, etc.
user configuration: /Users/kef/.beets/config.yaml
data directory: /Users/kef/.beets
Sending event: pluginload
artresizer: method is (2, (6, 9, 0))
library database: /Users/kef/Desktop/beets/beetslibrary.blb
library directory: /Users/kef/Desktop/beets/Music
Sending event: library_opened
Sending event: import_begin
@k-f-
k-f- / config.yaml
Created January 18, 2015 22:05
beets testing-config
# beets config. k-f-
# TESTing CONFIG
# TODO: Update Documentation about the beet -c option.
# Expected behavior is ignoring $BEETSDIR/config.yaml
#################################################################################
# Global Config #
#################################################################################
library: ~/Desktop/beets/beetslibrary.blb # beets Library
#log: ~/Desktop/beets/beets.log # TODO: turn color off and beet -v import {FILES} 2>&1 | tee beets.log
directory: ~/Desktop/beets/Music # default: ~/Music
@k-f-
k-f- / [embedart] ValueError:
Created January 18, 2015 22:01
[beet-embedart] Errors
user configuration: /Users/kef/.beets/config.yaml
data directory: /Users/kef/.beets
Sending event: pluginload
artresizer: method is (2, (6, 9, 0))
library database: /Users/kef/Desktop/beets/beetslibrary.blb
library directory: /Users/kef/Desktop/beets/Music
Sending event: library_opened
Sending event: import_begin
Sending event: import_task_start
Looking up: /Users/kef/Desktop/beets/fresh/2006 - A Tribute to Led Zeppelin