Skip to content

Instantly share code, notes, and snippets.

@mrvdb
mrvdb / .gitignore
Last active November 24, 2022 15:17
Docker spec for telegram-desktop in container on ppc64le
.env
# 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"
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)
@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"
{'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 @@
#ifndef DSMR_INCLUDE_DSMR_H
#define DSMR_INCLUDE_DSMR_H
+// Workaround for isolatiing support DSMR2.2 (kinda)
+// - no checksum after the '!'
<?php
// 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:
{{{
;; https://github.com/dominikh/go-mode.el
(use-package go-mode