Skip to content

Instantly share code, notes, and snippets.

Dan Wilcox danomatika

Block or report user

Report or block danomatika

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@danomatika
danomatika / check-for-src-pattern
Last active Apr 1, 2018
a simple script to check for a given string pattern in any .c, .h, .cpp, .cxx, .m, .mm, etc source files in the current directory and any subdirectories
View check-for-src-pattern
#! /bin/bash
#
# simple script to check for a given string pattern in any
# .c, .h, .cpp, .cxx, .m, .mm, etc source files
#
# Dan Wilcox <danomatika@gmail.com> 2014, 2016
#
# file type extensions to check (if none given)
EXTS=( ".c" ".h" ".cpp" ".hpp" ".cxx" ".m" ".mm" ".sh" ".pd" ".tcl" )
@danomatika
danomatika / Makefile.iphone
Created Jul 2, 2013
FreeImage Makefile for iOS updated for newer version of XCode, tested with OSX 10.8 & XCode 4.6
View Makefile.iphone
# Configuration for iPhone OS, builds static libs for iOS and the iOSSimulator
#
# You can make a fat lib (iOS + iOSSimulator) using lipo:
# lipo -c libfreeimage-simulator.a libfreeimage-armv7.a -o libfreeimage.a
#
# Example: build & link fat lib for armv6, armv7, armv7s, & simulator
#
# make -f Makefile.iphone
# sed -i tmp "s|ARCH_PHONE =.*|ARCH_PHONE = armv7s|" Makefile.iphone
# make -f Makefile.iphone
@danomatika
danomatika / Makefile.osx
Created Jul 2, 2013
FreeImage Makefile for Mac OSX updated to build 32/64 bit fat libs, tested with OSX 10.8 & XCode 4.6
View Makefile.osx
# Configuration for Max OSX, builds fat 32/64 bit static & dynamic libs
include Makefile.srcs
# Update this based on your installed SDKs
MACOSX_SDK = 10.8
MACOSX_MIN_SDK = 10.6
# Find SDK path via xcode-select, backwards compatible with Xcode vers < 4.5
MACOSX_SYSROOT = $(shell xcode-select -print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$(MACOSX_SDK).sdk
@danomatika
danomatika / say-result
Last active Dec 19, 2015
small script for Mac OSX which speaks the result of a given command, useful for knowing when a long build is finished
View say-result
#! /bin/bash
#
# say-result: speaks the result of a given command
# put this in a location that is added to the shell bin path
#
# usage: say-result [command & options]
#
# examples:
# say-result make
# say-result false
You can’t perform that action at this time.