Skip to content

Instantly share code, notes, and snippets.

@guyzmo
guyzmo / random-fortune-1.txt
Created May 21, 2016 16:23
this is a test.
Your best consolation is the hope that the things you failed to get weren't
really worth having.
@guyzmo
guyzmo / random-fortune-1.txt
Created May 21, 2016 17:27
this is a test.
Your best consolation is the hope that the things you failed to get weren't
really worth having.
@guyzmo
guyzmo / random-fortune-1.txt
Created May 21, 2016 17:29
this is a test.
No one can guarantee the actions of another.
-- Spock, "Day of the Dove", stardate unknown
@guyzmo
guyzmo / serial_tcp_redirect.py
Created May 22, 2016 19:12
serial→tcp redirect with split on line endings
#!/usr/bin/env python
# based on tcp_serial_redirect.py from pyserial
# http://pyserial.sourceforge.net/
"""USAGE: serial_tcp_redirect.py [options]
Simple Serial to Network (TCP/IP) redirector.
This redirector waits for data from the serial port, then connects
to the remote host/port and relays data back and forth. If either
Test session starts (platform: linux, Python 3.5.1, pytest 2.9.2, pytest-sugar 0.7.1)
rootdir: …, inifile:
plugins: cov-2.2.1, xdist-1.14, sugar-0.7.1, catchlog-1.2.2, datadir-ng-1.1.0
―――――――――――――――――――――――――――――――――――――――――――――――― ERROR at teardown of TestCalenvite.test_subscribe__merge_calendar ――――――――――――――――――――――――――――――――――――――――――――――――
self = <CallInfo when='teardown' exception: teardown_method() takes 1 positional argument but 2 were given>
func = <function call_runtest_hook.<locals>.<lambda> at 0x7fda4e291268>, when = 'teardown'
@guyzmo
guyzmo / crash_snippet.log
Created September 18, 2016 16:26
Meteor crash report
W20160918-18:20:16.911(2)? (STDERR) /home/guyzmo/Workspace/Freelance/wd2/node_modules/q/q.js:155
W20160918-18:20:16.912(2)? (STDERR) throw e;
W20160918-18:20:16.913(2)? (STDERR) ^
W20160918-18:20:16.913(2)? (STDERR)
W20160918-18:20:16.914(2)? (STDERR) Error: socket hang up
W20160918-18:20:16.915(2)? (STDERR) at createHangUpError (_http_client.js:213:15)
W20160918-18:20:16.916(2)? (STDERR) at Socket.socketCloseListener (_http_client.js:245:23)
W20160918-18:20:16.917(2)? (STDERR) at emitOne (events.js:82:20)
W20160918-18:20:16.917(2)? (STDERR) at Socket.emit (events.js:169:7)
W20160918-18:20:16.918(2)? (STDERR) at TCP._onclose (net.js:486:12)
@guyzmo
guyzmo / private.xml
Created September 21, 2016 01:16
Karabiner configuration for disabling the command keys
<?xml version="1.0"?>
<root>
<item>
<name>Send Shift-Ctrl-F13 for Command Left</name>
<identifier>private.send_shift_ctrl_f13_for_lcmd</identifier>
<autogen>--KeyToKey-- KeyCode::COMMAND_L,
KeyCode::F13, ModifierFlag::SHIFT_L
| ModifierFlag::CONTROL_L
</autogen>
</item>
@guyzmo
guyzmo / plot_gcode.py
Created December 17, 2016 15:55
Gcode Plotter
#!/usr/bin/env python
from __future__ import unicode_literals, print_function
import sys
import matplotlib.pyplot as plt
import csv
import re
@guyzmo
guyzmo / muttrc
Last active February 20, 2023 20:00
Testing the LUA get()/set() API
set visual=vim
set connect_timeout=69
set arrow_cursor
set mask="!^\\.[^.]"
lua-source ./muttrc-type-test.lua
lua test_config_type("DT_STR ", "visual", "vim", "fubar")
lua test_config_type("DT_NUM ", "connect_timeout",69,42)
lua test_config_type("DT_BOOL ", "arrow_cursor", true, false)
lua test_config_type("DT_QUAD ", "abort_noattach", mutt.QUAD_NO, mutt.QUAD_ASKNO)
@guyzmo
guyzmo / .XCompose
Created January 24, 2017 21:40
[WIP] My XCompose file
include "/usr/share/X11/locale/en_US.UTF-8/Compose"
<Multi_key> <asterisk> <A> : "Α" U0391 # GREEK CAPITAL LETTER ALPHA
<Multi_key> <asterisk> <B> : "Β" U0392 # GREEK CAPITAL LETTER BETA
<Multi_key> <asterisk> <G> : "Γ" U0393 # GREEK CAPITAL LETTER GAMMA
<Multi_key> <asterisk> <D> : "Δ" U0394 # GREEK CAPITAL LETTER DELTA
<Multi_key> <asterisk> <E> : "Ε" U0395 # GREEK CAPITAL LETTER EPSILON
<Multi_key> <asterisk> <Z> : "Ζ" U0396 # GREEK CAPITAL LETTER ZETA
<Multi_key> <asterisk> <Y> : "Η" U0397 # GREEK CAPITAL LETTER ETA
<Multi_key> <asterisk> <H> : "Θ" U0398 # GREEK CAPITAL LETTER THETA