Skip to content

Instantly share code, notes, and snippets.

View ahogen's full-sized avatar

Alex H ahogen

View GitHub Profile
@ahogen
ahogen / build_avdecc_lib.sh
Last active August 2, 2017 21:22
Download and build the AVB/TSN controller utility from Avnu Alliance (https://github.com/AVnu/avdecc-lib). Tested on Ubuntu 16.04.
#!/bin/bash
###############################################################################
# File: build_avdecc_lib.sh
# Author: Alex Hogen (@ahogen on Github)
#
# Download and build the AVB/TSN controller utility from Avnu Alliance
# (https://github.com/AVnu/avdecc-lib). Tested on Ubuntu 16.04.
###############################################################################
echo "Is the current directory where you want to download and compile avdecc-lib?"
@ahogen
ahogen / xTIMEcomposer_code_under_version_control.md
Last active March 8, 2018 12:39
A tutorial describing how to keep code and Eclipse workspace metadata separate.

xTIMEcomposer Code Under Version Control


Intro

Do you need to keep your code under source/revision control with a solution like Git, Subversion (SVN), Mercurial? Are you using an Eclipse-based IDE like xTIMEcomposer (XMOS) or Code Composer Studio (Texas Instruments) and hate all the /.metadata junk that should stay far away from your precous code?

That's exactly what I wanted. I literally wanted just my code sitting under version control (SVN in my case) and I needed to be able to pull and build that code on multiple machines. Putting your entire workspace folder under version control is a really bad idea (I tried it) because it's got a bunch of junk created by Eclipse that you never wanted. It also isn't portable. Making a pull on a new machine results in a bunch of Eclipse errors.

This was my answer to my own question I posted/asked on the XMOS forums. The original post is here. I d

@ahogen
ahogen / putty_uart_rpi3.sh
Last active August 2, 2017 21:25
Launch PuTTY in UART mode with Raspberry Pi 3 default serial settings. Also set up a realistic text size for PuTTY. By default, it was ultra-tiny on my Linux Mint machine, so we change the font to a normal 12pt font. I figure most people should have the Ubuntu Mono font, so this should work well.
#! /bin/bash
###############################################################################
# File: putty_uart_rpi3.sh
# Author: Alexander Hogen (https://github.com/ahogen)
#
# This script assumes you have added your user to the appropriate group(s)
# to access serial devices without sudo access. The "dialout" group comes
# to mind... To add yourself to "dialout", run the following command...
#