Skip to content

Instantly share code, notes, and snippets.

View freetype-typos.patch
From 63107a4d7679a805ec494596597727d0624f02c9 Mon Sep 17 00:00:00 2001
From: luz paz <luzpaz@github.com>
Date: Sat, 10 Jul 2021 19:05:32 -0400
Subject: [PATCH] Fix various typos
Found via ./src/autofit/aflatin.c:1697: inbetween ==> between, in between
./src/autofit/afhints.c:1056: inbetween ==> between, in between
./src/pshinter/pshalgo.c:805: inbetween ==> between, in between
./src/gxvalid/gxvjust.c:252: Threshhold ==> Threshold
./src/pfr/pfrload.c:291: acount ==> account
View FC-Cmake-summary.txt
==============
Summary report
==============
-- Build type: None
-- Compiler: /usr/bin/c++ (10.2.0)
-- Flags: -Wall -Wextra -Wno-write-strings -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fPIC -w
-- Standard: Requires C++14
-- Python: [/usr/bin/python] [.cpython-39-x86_64-linux-gnu]
-- PCL: not enabled
@luzpaz
luzpaz / API_Guide.md
Last active Dec 29, 2020
FreeCAD API notes
View API_Guide.md
@luzpaz
luzpaz / codespell_flags_foss.md
Last active Apr 13, 2021
codespell flags for different FOSS projects
View codespell_flags_foss.md
@luzpaz
luzpaz / gist:2c1cdb0a7919123558cf5c28fa39646a
Created Nov 29, 2020
List of .svg files in ./src/Mod
View gist:2c1cdb0a7919123558cf5c28fa39646a
./src/Mod/Tux/Resources/icons/NavigationMayaGesture_Rotate.svg
./src/Mod/Tux/Resources/icons/NavigationTouchpad_ZoomAlt.svg
./src/Mod/Tux/Resources/icons/NavigationCAD_RotateAlt.svg
./src/Mod/Tux/Resources/icons/NavigationGesture_Tilt.svg
./src/Mod/Tux/Resources/icons/NavigationMayaGesture_Tilt.svg
./src/Mod/Tux/Resources/icons/NavigationOpenInventor_Rotate.svg
./src/Mod/Tux/Resources/icons/NavigationOpenInventor_Zoom.svg
./src/Mod/Tux/Resources/icons/NavigationGesture_Zoom.svg
./src/Mod/Tux/Resources/icons/NavigationRevit_Rotate.svg
./src/Mod/Tux/Resources/icons/NavigationGesture_Select.svg
View gist:560e092fcea6c425959e46fed79f941f
  • Patching from https://.patch file

    curl https://github.com/GNOME/gimp/compare/master...luzpaz:typos.diff | git apply -v
    
  • Patching a FreeCAD workbench from a PR

    cd ~/.FreeCAD/Mod/sheetmetal/
    git fetch 
    curl -ss https://patch-diff.githubusercontent.com/raw/shaise/FreeCAD_SheetMetal/pull/146.patch | git apply
    
View gist:22ecb3633b8fd7a1b0b8c40f71196010
External Projects
Voxel Workench
https://github.com/JMG1/VoxelWorkbench
@luzpaz
luzpaz / cppcheck
Last active Jul 15, 2020
Running cppcheck on FC master revision 21986
View cppcheck
src/App/Annotation.cpp:33:1: error: There is an unknown macro here somewhere. Configuration is required. If PROPERTY_SOURCE is a macro then please configure it. [unknownMacro]
PROPERTY_SOURCE(App::Annotation, App::DocumentObject)
^
src/App/Material.h:52:5: error: syntax error [syntaxError]
Color(uint32_t rgba)
^
src/App/Link.h:217:5: error: There is an unknown macro here somewhere. Configuration is required. If BOOST_PP_SEQ_FOR_EACH is a macro then please configure it. [unknownMacro]
BOOST_PP_SEQ_FOR_EACH(LINK_PROP_GET,_,LINK_PARAMS)
^
src/App/Transactions.h:170:5: error: syntax error [syntaxError]
@luzpaz
luzpaz / grep.txt
Last active Jul 30, 2021
CLI gems
View grep.txt
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)
View gist:08290325bf6c482673e05688822d15d1
[[Arch 3Views]]
[[Arch Add]]
[[Arch Axis]]
[[Arch AxisSystem]]
[[Arch Building]]
[[Arch BuildingPart]]
[[Arch Check]]
[[Arch CloneComponent]]
[[Arch CloseHoles]]
[[Arch CompAxis]]