Skip to content

Instantly share code, notes, and snippets.

@ksalman
ksalman / USAGE.md
Created December 5, 2017 16:17 — forked from mterwill/USAGE.md
Beancount importers, scripts, etc.

Note: everything here is pretty specific to my usage/accounts and not written for public use... You'll probably have to tweak a bunch of stuff.

$ bean-extract config.py ~/Downloads # the csvs should be in here
root@testzone:/root/pyzmq# /opt/csw/bin/pip install pyzmq
Collecting pyzmq
Using cached pyzmq-16.0.2.tar.gz
Installing collected packages: pyzmq
Running setup.py install for pyzmq ... error
Complete output from command /opt/csw/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-De7p_5/pyzmq/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-JRisoK-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: latite
[TRACE ] The required configuration section, 'fluent_handler', was not found the in the configuration. Not loading the fluent logging handlers module.
[TRACE ] None of the required configuration sections, 'logstash_udp_handler' and 'logstash_zmq_handler', were found in the configuration. Not loading the Logstash logging handlers module.
[DEBUG ] Configuration file path: /etc/salt/minion
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
2017-03-27 14:32:05,234 [salt.utils.parsers ][WARNING ][21351] Master received a SIGTERM. Exiting.$
2017-03-27 14:32:05,934 [salt.cli.daemons ][INFO ][25113] Setting up the Salt Master$
2017-03-27 14:32:06,000 [salt.crypt ][DEBUG ][25113] Loaded master key: /etc/salt/pki/master/master.pem$
2017-03-27 14:32:06,000 [salt.daemons.masterapi ][PROFILE ][25113] Beginning pwd.getpwall() call in masterarpi acess_keys function$
2017-03-27 14:32:06,005 [salt.daemons.masterapi ][PROFILE ][25113] End pwd.getpwall() call in masterarpi acess_keys function$
2017-03-27 14:32:06,005 [salt.daemons.masterapi ][INFO ][25113] Preparing the root key for local communication$
2017-03-27 14:32:06,006 [salt.daemons.masterapi ][DEBUG ][25113] Removing stale keyfile: /var/cache/salt/master/.root_key$
2017-03-27 14:32:06,034 [salt.log.setup ][DEBUG ][25113] Stopping the multipro
test
2017-03-27 14:32:05,234 [salt.utils.parsers ][WARNING ][21351] Master received a SIGTERM. Exiting.$
2017-03-27 14:32:05,934 [salt.cli.daemons ][INFO ][25113] Setting up the Salt Master$
2017-03-27 14:32:06,000 [salt.crypt ][DEBUG ][25113] Loaded master key: /etc/salt/pki/master/master.pem$
2017-03-27 14:32:06,000 [salt.daemons.masterapi ][PROFILE ][25113] Beginning pwd.getpwall() call in masterarpi acess_keys function$
2017-03-27 14:32:06,005 [salt.daemons.masterapi ][PROFILE ][25113] End pwd.getpwall() call in masterarpi acess_keys function$
2017-03-27 14:32:06,005 [salt.daemons.masterapi ][INFO ][25113] Preparing the root key for local communication$
2017-03-27 14:32:06,006 [salt.daemons.masterapi ][DEBUG ][25113] Removing stale keyfile: /var/cache/salt/master/.root_key$
2017-03-27 14:32:06,034 [salt.log.setup ][DEBUG ][25113] Stopping the multipro
@ksalman
ksalman / CapsLockCtrlEscape.ahk
Created July 27, 2016 21:36 — forked from sedm0784/CapsLockCtrlEscape.ahk
AutoHotkey script to map Caps Lock to Escape when it's pressed on its own, and Ctrl when used in combination with another key, à la Steve Losh. Adapted from the one that does something similar with the Ctrl Key on the Vim Tips Wiki (http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows?oldid=32281). (With some extra key combos added by @r…
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
*CapsLock::
if (g_ControlRepeatDetected)
{
return
}
{
"A": "test",
"B": "another test",
"C": [
"foo"
]
}
@ksalman
ksalman / 1_pillar
Last active August 29, 2015 14:16
Using pillar data in python state renderer
vlabdb:
foo64: myvlabdb
foo:
- bar
- baz