Skip to content

Instantly share code, notes, and snippets.

View p1-olm's full-sized avatar

Olivier Le Moal p1-olm

  • Nantes, France
View GitHub Profile
@p1-olm
p1-olm / subl
Last active June 12, 2017 10:19
Allow piping to Sublime Text on Linux. Doesn't interfere with normal use.
#!/bin/bash
# Allow piping to Sublime Text. Doesn't interfere with normal use.
# Is stdin a terminal?
if test -t 0; then
# Stdin is a terminal.
# Open sublime normally.
/opt/sublime_text/sublime_text "$@"
else
@p1-olm
p1-olm / android_configure.sh
Created January 6, 2017 15:07 — 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