Skip to content

Instantly share code, notes, and snippets.

Avatar

Vladislav Zavjalov slazav

View GitHub Profile
@slazav
slazav / dxf2pdf.js
Last active Jul 31, 2020
command-line converter DXF to PDF using QCAD
View dxf2pdf.js
// 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() {
@slazav
slazav / 99-tektronix.rules
Created Jun 1, 2017
udev rule for Tektronix TDS2014B oscilloscope
View 99-tektronix.rules
# 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 / convert_shape.py
Last active Mar 21, 2022
Convert OpenSCAD files to STEP or IGES using FreeCAD python library
View convert_shape.py
#!/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)