Skip to content

Instantly share code, notes, and snippets.

// hex shaped shell for building standoff guide out of loop-only print, no infill
// stl outputs from this openscad file work to create strong loop only objects
// port the no_of_loops and loop_width vars below into the slicer of choice (KISS was used for first test)
// and using hollow mode
// to do's
// figure out a way for solo-shell prints to have different inner and outer path shapes
// currently unused
### DISCLAIMER
### This is a config Makefile tailored to be used with the Type A Machines Series 1 2014
### For detailed explanations about all the available options in the arduino.mk makefile,
### please refer to https://github.com/sudar/Arduino-Makefile/blob/master/arduino-mk-vars.md
### PROJECT_DIR
### This is the path to where you have created/cloned your project
PROJECT_DIR =/home/ubuntu/marlin/Marlin
@miloh
miloh / 2014Series1-Marlin-Makefile
Last active August 29, 2015 14:00
2014 Series-1 Makefile for use with Marlin
### DISCLAIMER
### This Makefile is for use with the 2014 Series-1 and arduino-mk.
### see instructions for installation and use at forum.typemachines.com
### For detailed explanations about all the avalaible options,
### please refer to https://github.com/sudar/Arduino-Makefile/blob/master/arduino-mk-vars.md
### PROJECT_DIR
### This is the path to where you have created/cloned your project
PROJECT_DIR =/home/ubuntu/marlin/Marlin
@miloh
miloh / smb-snippet
Last active August 29, 2015 14:00
config info for sharing a firmware directory on a 2014 Series 1 3D printer
[Series-1-Marlin]
path = "/home/ubuntu/marlin/"
create mask = 664 #
force create mode = 664 #
security mask = 664 # this works to mask existing upload
force security mode = 664
force directory mode = 0000
directory mask = 2775
force directory mode = 2775
@miloh
miloh / sayingthings.sh
Created July 4, 2015 22:18
sayingthings was a script for irc TTS with festival, used by noisebridgers from 2010-2012
#!/bin/sh
ssh -p 9595 user@persistentserver "tail -1f irc.log.Window1" | perl -lne 'BEGIN{$|++} print "$1 says $2" if m/^[^<]+<.(\S+)> ([^[]+)$/; print "$1 $2" if m/^[^<]+ \* ((\S+) ([^[].+))$/' | while read f; do echo "(SayText \"$f\")"; done | festival
#!/bin/sh
MSG=""
until [ -z "$1" ] ; do
MSG="$MSG $1"
shift
done
curl -X POST -d say="$MSG" http://api.noisebridge.net/audio/ > /dev/null &
#!/bin/bash
#set -x
phrase=$1
if [ ! $2 ]
then
language="en"
else
language=$2
fi
say() { local IFS=+;/usr/bin/mplayer -ao alsa -really-quiet -noconsolecontrols "http://translate.google.com/translate_tts?tl=$language&q=$phrase"; }
#!/bin/bash
while read word;
do
wget -q -U Mozilla -O output.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&tl=en&q=$word"
mplayer output.mp3 &> /dev/null
done
@miloh
miloh / intro2koruza.md
Last active November 18, 2015 01:13
Koruza: notes from a talk given by Luka Mustafa. Noisebridge, 17 Nov 2015
@miloh
miloh / tiff2pdfunite
Last active January 21, 2016 22:51
convert tif2pdf and unite pdf
#! /usr/bin/env bash
# quick convert of scantailor tiff output into single pdf.
# requires tiff2pdf and pdfunite
list=
for file in *.tif
do
filename=$(basename "$file")
extension=${filename##*.}
filename=${filename%.*}
echo "converting" $filename $extension "to pdf"