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
#ifndef CONFIGURATION_H | |
#define CONFIGURATION_H | |
// This configurtion file contains the basic settings. | |
// Advanced settings can be found in Configuration_adv.h | |
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration | |
//User specified version info of THIS file to display in [Pronterface, etc] terminal window during startup. | |
//Implementation of an idea by Prof Braino to inform user that any changes made | |
//to THIS file by the user have been successfully uploaded into firmware. |
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
/* | |
* DrawCircles | |
* | |
*/ | |
import processing.opengl.*; | |
void setup() { | |
size(screen.width, screen.height, OPENGL); | |
frameRate(120); |
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
; Start G-code | |
G28 ; home all axes | |
; End G-code | |
G1 X12.0 F4000 ; home (almost) x | |
G1 Y170 F4000 ; move the print to the front. | |
M104 S0 ; make sure the extruder is turned off. | |
M140 S0 ; make sure the bed is turned off. | |
M84 ; shut down motors. |
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
# the -l INFO provides logging of SFTP logins | |
Subsystem sftp /usr/libexec/sftp-server -l INFO |
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
Login as someuser (type password at prompt): | |
mysql -u someuser -p | |
(To not be promted for the password, you would use 'mysql -u someuser -ppassword') | |
Load a database from a dump file: | |
mysql -u someuser -p dbname < somedatabase.mysql |
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
/Applications/ffmpegx/mencoder mf:///Users/pete/Desktop/webcam/*jpg -mf w=320:h=240:fps=6:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o ~/Desktop/output.avi | |
/Applications/ffmpegx/mencoder mf://*jpg -mf w=320:h=240:fps=12:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o ~/Desktop/output.avi | |
mencoder mf://*.jpg -mf w=320:h=240:fps=6:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o output.avi |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Net::Ping; | |
my $host = shift || 'www.google.com'; | |
my $wait = shift || 5; | |
my @states = map { "Internet is $_ " } qw/down up/; |