Skip to content

Instantly share code, notes, and snippets.

View snegovick's full-sized avatar

Konstantin Kirik snegovick

View GitHub Profile
#!/usr/bin/env python
# Copyright (C) 2012 by Kirik Konstantin <snegovick>
import pygst
import Image
pygst.require("0.10")
import gst
import sys
/*
* ChibiOS/RT - Copyright (C) 2013 Alan Barr
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@snegovick
snegovick / gist:4193874
Created December 3, 2012 09:35
simple script which reopens same tty
import serial
import struct
import sys
import time
def open_and_cat():
port = serial.Serial(sys.argv[1], sys.argv[2], bytesize=8, parity='N', stopbits=1, xonxoff=0, rtscts=0, timeout=2)
while True: