Skip to content

Instantly share code, notes, and snippets.

;;
;; Allow automatically handing of created/expired meta data.
;;
(require 'org-expiry)
;; Configure it a bit to my liking
(setq
org-expiry-created-property-name "CREATED" ; Name of property when an item is created
org-expiry-inactive-timestamps t ; Don't have everything in the agenda view
)
@mrvdb
mrvdb / interfaces
Created July 12, 2012 16:06
Linux network /etc/network/interfaces file to bond eth0 and wlan0 into one virtual interface bond0
# Regardless of how our topology looks, we'll need the local interface
auto lo
iface lo inet loopback
# Configuration basics taken from:
# http://www.kernel.org/doc/Documentation/networking/bonding.txt
# Define the bonding master, which is ideally our only interface to the outside world
# - define slaves as none initially, this helps with booting faster
# - the primary line makes most sense here, but is not enough
# - set the interface check interval to 100ms
@mrvdb
mrvdb / GTD.org
Created May 25, 2011 09:48
Journaling setup

Journaling setup in orgmode

Here’s the info about setting up the journaling system.

The entry for the journaling template I use is this:

(setq org-capture-templates
      (quote (
	      ("j" "Journal" 
	       plain (file+datetree (concat org-directory "journal.org")) 
@mrvdb
mrvdb / .gitignore
Last active November 24, 2022 15:17
Docker spec for telegram-desktop in container on ppc64le
.env
@mrvdb
mrvdb / gist.el
Created July 28, 2020 11:46
org-journal configuration
(use-package org-journal
:after org
:bind
(("C-c j" . 'org-journal-new-entry))
:init
;; The expand-file-name is needed, which is odd, because for single
;; files this is not needed.
(setq org-journal-dir (expand-file-name (concat org-directory "journal/"))
;; Bring our config to every journal file
org-journal-file-header "#+SETUPFILE: ~/.emacs.d/org-config.org"
# Rule to run a script when yubikey is inserted/removed
# Mostly to get gpg and ssh to behave properly
# There are signals this will be patched in gpg so this may be
# not needed anymore.
ACTION=="remove|add|change", \
ENV{ID_VENDOR_ID}=="1050",ENV{ID_MODEL_ID}=="0116",ENV{ID_SERIAL_SHORT}=="0003022097", \
RUN+="/usr/local/bin/yubikey-changed"
@mrvdb
mrvdb / gist:3111823
Created July 14, 2012 15:25
Automatic asynchronous org-mobile-push in idle time.
;; Show a notification when a push has been completed
(require 'notifications)
(defun notify-push (result)
(notifications-notify
:title "Push complete"
:body (format "Org-mobile-push: %s" result)
)
)
;; Fork the work of pushing to mobile
Debugger entered--Lisp error: (quit)
org-check-agenda-file("/home/mrb/dat/org/journal/20200728.org")
org-agenda-prepare-buffers(("/home/mrb/dat/org/journal/20200728.org"))
org-map-entries(#f(compiled-function () #<bytecode 0x1e0c29938002>) "+carryover|+TODO=\"TODO\"")
org-journal-carryover()
org-journal-new-entry((4))
funcall-interactively(org-journal-new-entry (4))
call-interactively(org-journal-new-entry nil nil)
command-execute(org-journal-new-entry)
{'full_text': 'BTC: $7689.26', 'color': '#FF0000', 'cached_until': 1587997641.0}
{'full_text': 'BTC: $7689.26', 'color': '#FF0000', 'cached_until': 1587997642.0}
{'full_text': 'BTC: $7689.26', 'color': '#FF0000', 'cached_until': 1587997643.0}
{'full_text': 'BTC: $7689.26', 'color': '#FF0000', 'cached_until': 1587997644.0}
{'full_text': 'BTC: $7689.27', 'color': '#FF0000', 'cached_until': 1587997645.0}
{'full_text': 'BTC: $7689.27', 'color': '#FF0000', 'cached_until': 1587997646.0}
{'full_text': 'BTC: $7689.27', 'color': '#FF0000', 'cached_until': 1587997647.0}
{'full_text': 'BTC: $7689.27', 'color': '#FF0000', 'cached_until': 1587997649.0}
{'full_text': 'BTC: $7689.27', 'color': '#FF0000', 'cached_until': 1587997650.0}
{'full_text': 'BTC: $7689.27', 'color': '#FF0000', 'cached_until': 1587997651.0}