Skip to content

Instantly share code, notes, and snippets.

View slazav's full-sized avatar

Vladislav Zavjalov slazav

View GitHub Profile
@slazav
slazav / convert_shape.py
Last active November 17, 2022 14:56
Convert OpenSCAD files to STEP or IGES using FreeCAD python library
#!/usr/bin/python
# path to FreeCAD.so
FREECADPATH = '/usr/lib64/freecad/lib'
import sys
sys.path.append(FREECADPATH)
if len(sys.argv)<3:
print "Usage: sys.argv[0] <in_file> <out_file>"
sys.exit(1)
@slazav
slazav / 99-tektronix.rules
Created June 1, 2017 13:54
udev rule for Tektronix TDS2014B oscilloscope
# Tektronix TDS2014B oscilloscope
#
# On the device
# set "Utility menu -> Options -> Rear USB port" to "Computer"
# Then idProduct = 0368 (036b if Printer/Autodetect setting is used)
#
# kernel module: usbtmc
#
ACTION=="add",\
SUBSYSTEM=="usbmisc" KERNEL=="usbtmc*",\
@slazav
slazav / dxf2pdf.js
Last active July 31, 2020 11:29
command-line converter DXF to PDF using QCAD
// Converting DXF file to PDF without GUI
// Usage:
// qcad -autostart dxf2pdf.js <in_file> <out_file>
//
// V.Zavjalov, 03.07.2020, GLP-3.0
include("scripts/simple.js");
include("scripts/File/Print/Print.js");
function main() {