Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@keyz182
keyz182 / config.g
Created June 30, 2018 20:46
DuetConfigHevoPiezo
; General preferences
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
M667 S1 ; Select CoreXY mode
; Network
M550 PThreedee ; Set machine name
M552 D1 ; Enable network
M587 S"s" P".........." ; Configure access point. You can delete this line once connected
{
"board": "duetwifi10",
"firmware": 1.17,
"compatibility": 2,
"nvram": false,
"geometry": {
"type": "cartesian",
"mins": [
0,
-20,
@keyz182
keyz182 / mongo-repl.yml
Last active April 26, 2017 21:17
Openstack Heat template for MongoDB Replica Set
heat_template_version: 2014-10-16
description: >
Deploy a MongoDB replica set on
OpenStack Powered Cloud (Openstack Juno)
Maintainer - Kieran Evans <keyz182@gmail.com> | Github @keyz182
parameters:
replica_name:
type: string
@keyz182
keyz182 / config-di3-unmodified.json
Last active April 24, 2017 15:53
Configuration for RepRap Firmware (https://configurator.reprapfirmware.org/) for a Wanhao Di3 Modified with a DuetWifi board, David Crockers IR Z-Probe (https://miscsolutions.wordpress.com/mini-height-sensor-board/), and Prometheus system (https://www.distechautomation.com/products/prometheus-system). Z Height is low currently as the prometheus …
{
"board": "duetwifi10",
"firmware": 1.17,
"compatibility": 2,
"nvram": false,
"geometry": {
"type": "cartesian",
"mins": [
0,
0,
# generated by Slic3r 1.2.9 on Sun Apr 2 20:25:14 2017
[filament:My Settings]
bed_temperature = 0
bridge_fan_speed = 100
cooling = 1
disable_fan_first_layers = 3
extrusion_multiplier = 2.5
fan_always_on = 0
fan_below_layer_time = 60
@keyz182
keyz182 / Configuration.h
Last active March 19, 2017 15:37
wanhao-di3-prometheus-v2
/*
This file is part of Repetier-Firmware.
Repetier-Firmware 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.
Repetier-Firmware is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@keyz182
keyz182 / designer.html
Last active July 12, 2016 20:27
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
@keyz182
keyz182 / gist:7962484
Last active December 31, 2015 08:49
Make a timelaspe video at 15x speed from a normal video.
#!/bin/bash
mkdir frames
ffmpeg -i in.flv -f image2 -vf fps=fps=2 frames/%05d.png
ffmpeg -f image2 -i frames/%05d.png -i timelapse.mp3 -map 0 -map 1 -acodec copy -shortest -vcodec libx264 -r 30 out.mp4
rm frames/*
rmdir frames
__author__ = 'keyz'
import zmq
import sys
import random
PROXY_ADDRESS = "tcp://localhost:5559"
def main():
context = zmq.Context()
print "Connecting to server..."