Skip to content

Instantly share code, notes, and snippets.

UPDATE trees SET ssm_key='2079359679' WHERE ssm_key='Fruktträd:47.794544921353285,3.7987387782470394 '
UPDATE trees SET ssm_key='3876587950' WHERE ssm_key='Fruktträd:55.370740462044616,13.18814951885986 '
UPDATE trees SET ssm_key='2058312741' WHERE ssm_key='Fruktträd:55.375008,13.142787999999996 '
UPDATE trees SET ssm_key='4174291716' WHERE ssm_key='Fruktträd:55.38314900185668,12.816729219272712 '
UPDATE trees SET ssm_key='1033732604' WHERE ssm_key='Fruktträd:55.4291098350029,13.81921358999898 '
UPDATE trees SET ssm_key='601528726' WHERE ssm_key='Fruktträd:55.4405365706127,13.818291999825306 '
UPDATE trees SET ssm_key='3923334958' WHERE ssm_key='Fruktträd:55.440615689219946,13.81846366120219 '
UPDATE trees SET ssm_key='1316575998' WHERE ssm_key='Fruktträd:55.45774083696284,13.71110226904297 '
UPDATE trees SET ssm_key='1459768050' WHERE ssm_key='Fruktträd:55.5146985
@quite
quite / replace-meta-vars.lua
Created November 21, 2018 14:42
pandoc lua script that tries to replace meta vars everywhere
local vars = {}
function get_vars(meta)
for k, v in pairs(meta) do
val = v
if type(val) ~= "string" then
val = table.unpack(val).text
end
vars["{{" .. k .. "}}"] = val
end
@quite
quite / gist:3524045
Created August 30, 2012 08:12
debug log
DEBUG:ui:Got key (['r'], [114])
DEBUG:ui:cmdline: 'reply'
DEBUG:__init__:mode:thread got commandline "reply"
DEBUG:__init__:ARGS: [u'reply']
DEBUG:__init__:cmd parms {'spawn': None, 'all': False}
INFO:ui:apply command: <alot.commands.thread.ReplyCommand object at 0x9c92b2c>
DEBUG:envelope:TEMPLATE: None
DEBUG:thread:reply to: Marc <foo@example.com>
INFO:ui:apply command: <alot.commands.globals.ComposeCommand object at 0x9c4d86c>
DEBUG:globals:composecmd.apply: before ui.apply
@quite
quite / foo.patch
Created August 30, 2012 08:11
logging added
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index eadc76c..67398d5 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -256,6 +256,8 @@ class EditCommand(Command):
template = string_decode(f.read(), enc)
f.close()
+ logging.debug('openenvfromtmp')
+
DEBUG:__init__:mode:global got commandline "search tag:inbox AND NOT tag:killed"
DEBUG:__init__:ARGS: [u'search', u'tag:inbox', u'AND', u'NOT', u'tag:killed']
DEBUG:__init__:PARMS: {'sort': None, 'query': [u'tag:inbox', u'AND', u'NOT', u'tag:killed']}
DEBUG:__init__:cmd parms {'sort': None, 'query': [u'tag:inbox', u'AND', u'NOT', u'tag:killed'], 'prehook': None, 'posthook': None}
INFO:ui:setup gui in 256 colours
DEBUG:ui:fire first command
DEBUG:ui:apply command: <alot.commands.globals.SearchCommand object at 0x8efe62c>
DEBUG:walker:EMPTY PIPE
DEBUG:__init__:mode:search got commandline "prompt 'search '"
DEBUG:__init__:ARGS: [u'prompt', u'search ']
@quite
quite / mkhedruli-utils.el
Created September 30, 2011 12:29
Transliteration of Georgian language script, for emacs
;;; mkhedruli-util.el --- utilities for Mkhedruli scripts (Georgian language)
;; A modified cyril-util.el (by Valery Alexeev)
;; GPLv3
;; Display
(defvar mkhedruli-language-alist
(list '("Georgian"))