Skip to content

Instantly share code, notes, and snippets.

View JosephMillsAtWork's full-sized avatar

Joseph Mills JosephMillsAtWork

View GitHub Profile
#!/bin/bash
cd /home/linaro
mkdir fsl_bsp_3.10.17_1.0.0_ga
cd fsl_bsp_3.10.17_1.0.0_ga
wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO//firmware-imx-3.10.17-1.0.0.bin
wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO//imx-lib-3.10.17-1.0.0.tar.gz
wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO//libfslparser-3.0.11.bin
#!/usr/bin/env bash
#args are
# 1= the path to the qmake file
# 2= qmake file (the pro file)
## debug
set -x
#!/usr/bin/env bash
## debug
set -x
## where does the lupdate and all the other bins live ?
QTDIR=/home/joseph/Qt/5.8/gcc_64/bin
## run over the files and make the .po files
for i in $(ls $1/translations/ |grep .po);
@JosephMillsAtWork
JosephMillsAtWork / bashhighlighter.cpp
Created September 30, 2016 12:59
Bash Syntax Highlighter
#include "bashhighlighter.h"
#include <QColor>
BashSyntaxHighlighter::BashSyntaxHighlighter(QObject *parent)
:
QSyntaxHighlighter(parent)
{
}
#!/bin/bash
echo Building Google Protobuf for Mac OS X / iOS.
echo Use 'tail -f build.log' to monitor progress.
(
VERSION=2.6.1
DARWIN_RELEASE=`uname -r`
CORES=`sysctl hw.ncpu | awk '{print $2}'`
#PREFIX=`pwd`/protobuf
@JosephMillsAtWork
JosephMillsAtWork / android_configure.sh
Created May 11, 2016 05:42 — forked from nddrylliog/android_configure.sh
Cross-compile autotools library for Android / arm-linux-androideabi I stick that in ~/bin/, chmod +x, and then run it in place of "./configure" in my project. Then a make and make install later, the prefix contains libraries built for android. Neato eh?
#!/bin/sh
# I put all my dev stuff in here
export DEV_PREFIX=$HOME/Dev/
# Don't forget to adjust this to your NDK path
export ANDROID_NDK=${DEV_PREFIX}/android-ndk-r8d/
export CROSS_COMPILE=arm-linux-androideabi