Skip to content

Instantly share code, notes, and snippets.

View distributed's full-sized avatar

Michael Meier distributed

  • Aarau, Switzerland
View GitHub Profile
package main
import (
"fmt"
"log"
"os"
"os/exec"
"os/signal"
"strings"
"syscall"
@distributed
distributed / ccsreadmem.go
Last active August 29, 2015 13:57
reads memory from a coldfire processor connected via usb tap. communication is done with the codewarrior connection server over TCP.
package main
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"github.com/davecgh/go-spew/spew"
"io"
"log"
@distributed
distributed / tc.go
Created October 13, 2010 21:15
TTY/Serial Baudrate changer for Go
package tc
// Package contains one function to set TTY speed.
/*#include <stddef.h>
#include <stdlib.h>
#include <termios.h>*/
import "C"
import (
package main
import (
"fmt"
"log"
"go/parser"
"go/ast"
"go/token"
"runtime"
"os"