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/env python | |
# -*- coding: utf-8 -*- | |
''' | |
Copyright (C) 2007 Aaron Spike (aaron @ ekips.org) | |
Copyright (C) 2007 Tavmjong Bah (tavmjong @ free.fr) | |
Copyright (C) http://cnc-club.ru/forum/viewtopic.php?f=33&t=434&p=2594#p2500 | |
Copyright (C) 2014 Jürgen Weigert ([email protected]) | |
Copyright (C) 2015 Jakob Flierl ([email protected]) | |
This program is free software; you can redistribute it and/or modify |
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/env bash | |
# Record the X11 desktop defined by the DISPLAY env variable | |
# to ~/Desktop/capture-$timestamp.mkv with pulse audio sound. | |
# | |
# usage: | |
# | |
# run capture.sh to start capture | |
# run capture.sh to stop a running capture.sh | |
# |
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/env bash | |
# | |
# mpd fade in / out script: | |
# | |
# fades the current mpc volume to the given <end volume> | |
# within the given <duration in secs> | |
# | |
# Required tools: | |
# | |
# sudo apt -y install mpc bc |
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
unsigned char AC_LOAD = 7; // Output to Opto Triac pin | |
unsigned char dimming = 3; // Dimming level (0-100) | |
unsigned char i; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(AC_LOAD, OUTPUT);// Set AC Load pin as output | |
attachInterrupt(1, zero_crosss_int, RISING); | |
// Serial.begin(9600); |
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/env bash | |
# Record a webcam's video and audio stream defined by the $V and $A variables | |
# to ~/Desktop/webcam-$timestamp.mkv with cvlc and PulseAudio. | |
# | |
# Required tools: | |
# | |
# sudo apt -y install v4l-utils uvcdynctrl pulseaudio-utils vlc-nox | |
# | |
# Webcams tested: |
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/env bash | |
# | |
# Download, build and install https://github.com/stv0g/calcelestial | |
# | |
# Basic calcelestial usage examples with the at command: | |
# | |
# # make a beep at sunrise in Berlin | |
# echo "beep" | at $(calcelestial -m rise -p sun -q Berlin) | |
# |
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/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Sends HAL signals to the given MQTT broker host. | |
# | |
# usage: hal2mqtt.py [hostname] | |
# | |
# Video demo at https://www.youtube.com/watch?v=uFbr7xBjItE | |
# | |
# sudo apt-get install mosquitto mosquitto-clients python-mosquitto |
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
/* | |
* Copyright 2016 Jakob Flierl (jakob.flierl "at" gmail.com) | |
* | |
* ngc-hole is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* ngc-hole is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
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/env python2 | |
# | |
# submit an ngc file to a running LinuxCNC / Machinekit instance | |
# | |
# used as a filter for https://github.com/stewartoallen/grid-print | |
# | |
import sys | |
from shutil import copyfile | |
import linuxcnc |
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
( pcb2gcode 1.3.0 ) | |
( Gcode for LinuxCNC ) | |
G94 ( Millimeters per minute feed rate. ) | |
G21 ( Units == Millimeters. ) | |
G90 ( Absolute coordinates. ) | |
S10000 ( RPM spindle speed. ) | |
G64 P0.00333 ( set maximum deviation from commanded toolpath ) | |
F600.00000 ( Feedrate. ) |
OlderNewer