Skip to content

Instantly share code, notes, and snippets.

@wathiede
wathiede / json2nix.py
Created August 11, 2023 23:03 — forked from Scoder12/json2nix.py
Converts JSON objects into nix (hackishly).
"""Converts JSON objects into nix (hackishly)."""
import sys
import json
INDENT = " " * 2
def strip_comments(t):
@wathiede
wathiede / voron_24_printed_parts.md
Last active March 3, 2022 01:34 — forked from cmidgley/voron_24_printed_parts.md
Printed parts list for the Voron 2.4 organized by assembly order

Voron 2.4 Printed Parts List

List of parts to print for Voron 2.4 organized by the Assembly Manuals order of assembly, allowing for just-in-time printing of parts while building the printer. Configuration is standard Voron 2.4 (Afterburner Direct Feed, DIN rail mounts) with choices for E3D, Dragon or Mosquito hot ends on a 250mm, 300mm or 350mm frame. No parts for the drag chain are included, as often these are purchased parts rather than printed.

Names of the sections (such as Gantry/X_Axis/XY Joints) match the name of the STL directory that contains the prints. Note that Voron Design uses filenames starting with [a]_ at the start of a filename to indicate parts that can be printed in an accent color.

Origin


@wathiede
wathiede / designer.html
Last active August 29, 2015 14:12
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#code_mirror {
width: 400px;
height: 300px;
left: 1450px;
@wathiede
wathiede / jpeginfo.go
Last active August 29, 2015 14:04
Dump JPEG markers.
package main
import (
"bufio"
"errors"
"flag"
"fmt"
"io"
"log"
"os"
@wathiede
wathiede / tail.go
Last active August 29, 2015 13:57
Tail in Go
package main
import (
"bufio"
"flag"
"fmt"
"io"
"os"
"syscall"
)
@wathiede
wathiede / gist:7982372
Created December 16, 2013 04:36
Minimum size required for EXIF parsing.
package main
import (
"bytes"
"io"
"io/ioutil"
"log"
"os"
"camlistore.org/third_party/github.com/camlistore/goexif/exif"
@wathiede
wathiede / gist:7388339
Last active December 27, 2015 20:59
Setting up a VM with vagrant for jekyll.
# Jekyll Setup
## Download:
### Vagrant:
Latest at http://downloads.vagrantup.com/
- http://files.vagrantup.com/packages/a40522f5fabccb9ddabad03d836e120ff5d14093/Vagrant-1.3.5.dmg
Open .dmg and run installer.
@wathiede
wathiede / kill_old_camput.py
Created September 10, 2013 17:59
Hacky, but effective. I leave this running as the same user running the buildbot. Requires: https://code.google.com/p/psutil/
"""Kill old camputs. Helper for buildbot."""
import getpass
import logging
import signal
import sys
import time
import psutil
@wathiede
wathiede / ex.go
Created August 21, 2013 04:39
Enumerating blobs in camlistore
// ex will enumerate over all blobs, printing out the schema blobs found.
//
// To connect to the server setup in your
// ~/.config/camlistore/client-config.json or equivalent:
//
// go run ex.go
//
// or specify the server address to connect to:
//
// go run ex.go cam.example.com:3179