This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#fork from https://gist.github.com/4159230 jvcleave distcc buildscript | |
#openframework user examples build script | |
#put the script at $(OF_ROOT)/scripts/linux/debian_armv6l/buildAllExample.sh | |
cd ../../../examples | |
for category in $(ls -1d *) | |
do | |
if [ $category != "addons" ] && [ $category != "ios" ] && [ $category != "android" ]; then | |
echo "CHANGED TO CATEGORY >"+$category | |
cd $category |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a=1 | |
folder=$@ | |
target_folder=YOUR_TARGET_FOLDER_TO_PLACE_TIF | |
mkdir $target_folder/$folder | |
cd ./$folder | |
for i in $(ls *.dcm) | |
do | |
new=$(printf "%04d.tif" ${a}) #04 pad to length of 4 | |
convert ${i} -auto-level -depth 8 -normalize -resize 50% ${new} | |
mv ${new} $target_folder/$folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "testApp.h" | |
//-------------------------------------------------------------- | |
void testApp::setup(){} | |
//-------------------------------------------------------------- | |
void testApp::update(){} | |
//-------------------------------------------------------------- | |
void testApp::draw(){ | |
glPushMatrix(); | |
glTranslated(-8*15,-8*15,-8*15); | |
for(int i = 0 ; i < 512 ; i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/ | |
result=$(sudo find ~/ -name *Project) | |
echo ${result// /\\ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
target_file="temp.txt" | |
# process each line | |
cat "$target_file" | | |
while read each_line; do | |
echo "....$each_line" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# /etc/init.d/mjpg_streamer.sh | |
# v0.2 phillips321.co.uk | |
### BEGIN INIT INFO | |
# Provides: mjpg_streamer.sh | |
# Required-Start: $network | |
# Required-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: mjpg_streamer for webcam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nano /boot/cmdline.txt | |
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait loglevel=1 logo.nologo | |
sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# zpg - UNCOMPRESS FILE, DISPLAY WITH pg | |
# Usage: download mjpeg and recording to mp4 | |
PREFIX=$(date +%Y%m%d%H%M%S) | |
# trap ctrl-c and call ctrl_c() | |
trap ctrl_c INT | |
function ctrl_c() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scp -r ./bin/* pi@raspberrypi2.local:~/yucolab/LedWallClient ; scp -r ./bin/* pi@raspberrypi3.local:~/yucolab/LedWallClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------- | |
# Name: Stepper Motor | |
# | |
# Author: matt.hawkins | |
# | |
# Created: 11/07/2012 | |
# Copyright: (c) matt.hawkins 2012 | |
#----------------------------------- | |
#!/usr/bin/env python |
OlderNewer