Skip to content

Instantly share code, notes, and snippets.

View magno32's full-sized avatar

Justin Smith magno32

View GitHub Profile
@magno32
magno32 / Dockerfile
Last active June 8, 2018 01:52
Dockerfile that creates a build environment for Metabase
FROM ubuntu:xenial
ENV DEBIAN_FRONTEND noninteractive
#Install git and java
RUN apt-get update && \
apt-get -y install locales && \
apt-get -y install \
software-properties-common \
sudo \
@magno32
magno32 / Lanterna3 Thread Example.java
Last active August 29, 2015 14:13
Example of threading in Lanterna 3.
package lanternaexample;
import com.googlecode.lanterna.TextColor;
import com.googlecode.lanterna.gui2.BasicWindow;
import com.googlecode.lanterna.gui2.DefaultWindowTextGUI;
import com.googlecode.lanterna.gui2.EmptySpace;
import com.googlecode.lanterna.gui2.Label;
import com.googlecode.lanterna.gui2.StackedModalWindowManager;
import com.googlecode.lanterna.gui2.TextGUI;
import com.googlecode.lanterna.gui2.Window;
@magno32
magno32 / camel-opc-matrikonExample.groovy
Last active March 2, 2016 14:49
Groovy sample for getting tags from a sample matrikon OPC server using Apache Camel.
/*
* camel-opc Matrikon Example
*
* Copyright (C) 2013 - 2014 Summit Management Systems, Inc.
*
* 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
@magno32
magno32 / mkmmc-beaglebone.sh
Last active December 17, 2015 02:39
This is an adaptation of the mkmmc-android.sh script and the instructions found at http://maniacbug.wordpress.com/2012/08/03/pandayocto/ that will load an SD card with your custom Yocto build.. Some modifications had to be made to make the image components work with the beaglebone. The default images assumes you are building "core-image-basic". …
#!/bin/bash
## Arguement Validation
EXPECTED_ARGS=1
if [ $# == $EXPECTED_ARGS ]
then
echo "Assuming Default Locations for Prebuilt Images"
$0 $1 $PWD/tmp/deploy/images/MLO $PWD/tmp/deploy/images/u-boot.img $PWD/tmp/deploy/images/uImage $PWD/tmp/deploy/images/uImage-am335x-bone.dtb $PWD/tmp/deploy/images/core-image-basic-beaglebone.tar.gz
exit