Skip to content

Instantly share code, notes, and snippets.

View swarren's full-sized avatar

Stephen Warren swarren

View GitHub Profile
@swarren
swarren / win10.sh
Created July 24, 2018 18:24
Script to start qemu/kvm to run Windows 10 within Ubuntu 16.04
#!/bin/bash
cd `dirname $0`
echo -ne "\033]0;Win10 VM Terminal\007"
tapdev=tap1
sudo tunctl -u swarren -t ${tapdev}
sudo ifconfig ${tapdev} up
sudo brctl addif br0 ${tapdev}
@swarren
swarren / uart-slow-send.py
Created September 14, 2015 03:38
Slowly send a series of commands to a UART. Useful if e.g. the SW behind the UART can't keep up with the baud rate.
#!/usr/bin/env python
import serial
import sys
s = """
command 1
command 2
etc.
"""
@swarren
swarren / U-Boot_malloc_leak_tracing
Last active September 5, 2015 04:50
Malloc leak tracing hacks for U-Boot
See other files