Skip to content

Instantly share code, notes, and snippets.

Avatar

Alex Hogen ahogen

  • United States
View GitHub Profile
@ahogen
ahogen / xTIMEcomposer_code_under_version_control.md
Last active Mar 8, 2018
A tutorial describing how to keep code and Eclipse workspace metadata separate.
View xTIMEcomposer_code_under_version_control.md

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 / julia-install-pyplot-windows.jl
Last active Jan 24, 2018
Install and setup Plots with PyPlot backend using system Python in for Julia. Then builds system-specific Julia image for faster performance in the future.
View julia-install-pyplot-windows.jl
# Note: Both Julia and Python must be of the same architecture type. If Julia
# is 64-bit, so must your Python distribution.
#
# I tested this with a clean Julia install, by installing Julia and
# deleting "C:\Users\<username>\.julia".
#
# Julia: v6.1
# Python: v3.6.3 for Windows
#
View install_icarus_verilog.sh
#!/bin/bash
#####################################################################
# Download and install Icarus Verilog 10.2 on a Debian-based system.
# I wrote and executed this script on Linux Mint 18.3, which is based
# on Ubuntu 16.4.
#
# Author: Alex Hogen <https://github.com/ahogen>
# Created: 2017-12-12
#####################################################################
@ahogen
ahogen / julia_busy_dots.jl
Last active Nov 12, 2017
Julia busy indicator with ADCII dots
View julia_busy_dots.jl
###############################################################################
# File: julia_busy_dots.jl
# Author: Alex Hogen (@ahogen on Github)
#
# Print a little busy/waiting indicator to the screen.
#
# Start:
# $ julia julia_busy_dots.jl
# Stop:
# $ Ctrl+C
View ambrosia_chocolate_chip_cookies.md

CHOCOLATE CHIP COOKIES

From back of Ambrosia Semi Sweet Chocolate Chip bag, which used to be sold at Costco. Translated from a blurry image on Pinterest to this text file by Alex Hogen.

INGREDIENTS:

Amount Ingredient
1 cup Butter
3/4 packed Brown sugar
@ahogen
ahogen / wireshark-avb-capture.md
Created Sep 5, 2017
Commands to start Wireshark captures for AVB packets
View wireshark-avb-capture.md

Simple AVDECC (1722.1) only capture on selected interface.

tshark -f "ether proto 0x22f0" -i "AVB NIC" -w outfile.pcap
@ahogen
ahogen / putty_uart_rpi3.sh
Last active Aug 2, 2017
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.
View putty_uart_rpi3.sh
#! /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...
#
@ahogen
ahogen / build_avdecc_lib.sh
Last active Aug 2, 2017
Download and build the AVB/TSN controller utility from Avnu Alliance (https://github.com/AVnu/avdecc-lib). Tested on Ubuntu 16.04.
View build_avdecc_lib.sh
#!/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 / julia_async_tasks_semaphore_demo.jl
Last active Aug 2, 2017
A [Julia](https://julialang.org/) script, demonstrating the use of a semaphore to protect asyncronous data accesses.
View julia_async_tasks_semaphore_demo.jl
###############################################################################
# File: julia_async_tasks_semaphore_demo.jl
# Author: Alex Hogen (@ahogen on Github)
#
# This is a demo script I made for myself just to see how Julia's
# syntax for semaphores looks. This script is a basic demonstration
# of a producer and consumer task using a semaphore to protect the
# code sections where the global data variable is accessed.
#
# I built and ran this script with Julia 0.6.0.