Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

mrvdb / .gitignore
Last active November 24, 2022 15:17
Docker spec for telegram-desktop in container on ppc64le
# 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", \
Debugger entered--Lisp error: (quit)
org-map-entries(#f(compiled-function () #<bytecode 0x1e0c29938002>) "+carryover|+TODO=\"TODO\"")
funcall-interactively(org-journal-new-entry (4))
call-interactively(org-journal-new-entry nil nil)
mrvdb / gist.el
Created July 28, 2020 11:46
org-journal configuration
(use-package org-journal
:after org
(("C-c j" . 'org-journal-new-entry))
;; 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/"
{'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}
#!/usr/bin/env python
# -*- mode:python -*-
# Converts suunto zip files (which contain json files) to a gpx file
# until Suunto gets their act together and let me have my own data in
# a normal way.
# Needs: python 3.7
# These zip files are producted by the Suunto app and typically on
# android are located at:
diff --git a/src/dsmr.h b/src/dsmr.h
index ced73ec..73b368c 100644
--- a/src/dsmr.h
+++ b/src/dsmr.h
@@ -32,6 +32,10 @@
+// Workaround for isolatiing support DSMR2.2 (kinda)
+// - no checksum after the '!'
// Quick log wrapper
function _log($str) {
file_put_contents("php://stdout", $str);
// Show that we're up
_log("Got some data....\n");
== Go ==
Go has commonly used helper programs `godoc' and `godef' which can be used to find documentation
and source definitions.
An example of how to enable `C-h f' as context sensitive help function:
(use-package go-mode