Skip to content

Instantly share code, notes, and snippets.

External Projects
Voxel Workench
https://github.com/JMG1/VoxelWorkbench
@luzpaz
luzpaz / grep.txt
Last active March 10, 2023 13:12
CLI gems
grep -R (recurse through subdirectories)
grep -i (Case insensitive)
grep -e (extended regex, allows for regex modifiers)
grep -l (only returns file name)
grep -Rle 'aligne\b' | xargs sed -i 's/aligne\b/align/'g
# search for the string 'aligne' (don't returns strings like 'aligned')
# pass all files that have said string to xargs which quickly processes
# sed (with the -i flag to process in place)
@luzpaz
luzpaz / gist:08290325bf6c482673e05688822d15d1
Created February 3, 2020 14:15
FreeCAD wiki command pages
[[Arch 3Views]]
[[Arch Add]]
[[Arch Axis]]
[[Arch AxisSystem]]
[[Arch Building]]
[[Arch BuildingPart]]
[[Arch Check]]
[[Arch CloneComponent]]
[[Arch CloseHoles]]
[[Arch CompAxis]]
@luzpaz
luzpaz / CheckDeps.py
Last active December 6, 2019 06:44
Check FreeCAD dependencies via python
#
# Script to pythonically determine 3rd party dependencies in FreeCAD
#
# Some code borrowed from https://github.com/jaheyns/CfdOF/blob/master/CfdTools.py
# also suggestion from https://forum.freecadweb.org/viewtopic.php?f=22&t=40522
import FreeCAD
import subprocess as sub
def checkFCVersion(term_print=True):
# -*- coding: utf-8 -*-
# FreeCAD Headless AddonManager test
# (c) 2019 FreeCAD community LGPL
"""
The module can be executed with:
./FreeCAD.AppImage -c <path_to_file> AddonManagerHeadless.py
Note:
In order to test updates, it possible to use git reset --hard HEAD~1
@luzpaz
luzpaz / user.cfg.md
Last active October 17, 2019 03:46
Exploring the FreeCAD user.cfg file

FreeCAD Power User Mode

This document is a study on how the FreeCAD user.cfg is constructed.
The intention is to create customizable .cfg files that Power Users can utilize and share with each other. Possibly even an automation feature that allows the user to install FreeCAD with pre-installed addons, but lets not get ahead of ourselves.

Misc. Preferences

This is a list of various preferences/configurations that can be tweaked via user.cfg.

@luzpaz
luzpaz / FreeCAD-Addons-Workflow.md
Last active May 3, 2022 13:33
FreeCAD-Addons Guidelines

How to update the FreeCAD-Addons repo

git pull

###############################################

# git submodule foreach git checkout master
# Skip certain submodules https://stackoverflow.com/a/58292036

# for repos with default branch named: 'master'
#Creation of a Geneva Wheel with Parametric values By: Isaac Ayala (drei) & Mark Stephen (quick61)
#This Macro creates the main parts of a Geneva Wheel Mechanism
#It depends on six values that must be altered in the following code
#The variables are a, b, n, p, t and h.
#Definition for each variable
# Input
#a = Drive Crank Radius
#b = Geneva Wheel Radius
@luzpaz
luzpaz / gist:b2f53085cefd5266dcce25efb5172630
Created March 10, 2018 12:36
test file for codespell
positon
He had a certain positon
Create an open source floatation tank