http://www.compciv.org/recipes/cli/pup-for-parsing-html/
pup 'a:contains("geo.rkkda") text{}'
pup 'a:contains("geo.rkkda") attr{href}'
http://www.compciv.org/recipes/cli/pup-for-parsing-html/
pup 'a:contains("geo.rkkda") text{}'
pup 'a:contains("geo.rkkda") attr{href}'
| <?xml version="1.0" encoding="UTF-8" standalone="no" ?> | |
| <package format="1" xmlns="https://wiki.freecad.org/Package_Metadata"> | |
| <name>Zolkos Theme Package</name> | |
| <description>A preference pack including a stylesheet with tabs</description> | |
| <version>0.1.0</version> | |
| <maintainer email="zolko@zolko.org">Zolko</maintainer> | |
| <license file="LICENSE">GPLv3</license> | |
| <url type="repository" branch="main">https://github.com/zolko/ZolkoThemePackage</url> | |
| <icon>resources/icons/Zolko.svg</icon> |
| git show --pretty="" --name-only a9dc7b038d93ca96c776bd778f71458a4bc89a5e | grep -e '\.h$' | while read file; do md5sum ${file}; done |
| #!/bin/bash | |
| # This script will ascertain what hash number (derived from revision number) your current | |
| # local copy of FreeCAD is based on. Then it lists the commits that haven't made it in to | |
| # said local copy. | |
| git fetch --all # Make sure up-to-date | |
| head=$(git rev-list --count HEAD) | |
| echo -e "\n" | |
| echo -e "Upstream: $head" |
# get total commit count
curl --silent -I -k "https://api.github.com/repos/FreeCAD/FreeCAD/commits?per_page=1" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p'# get AppImage release number
curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/FreeCAD/FreeCAD-bundle/releases/tags/weekly-builds | jq '.assets[].name' | grep -e 'AppImage\"$' | sed -r 's/.*-([0-9]{5}).*/\1/'src/Gui/CommandT.h shows doxygen examples of for both cplusplus and python:
https://github.com/luzpaz/FreeCAD/blob/f2d17774e8c9154f80b98f797e3561ee2ad36061/src/Gui/CommandT.h#L59-L78
How to list parameters in the user.cfg (courtesy of openBrain)
#!/usr/bin/python
def printValues(group, level):
for value in FreeCAD.ParamGet(group).GetContents():
print(" "*(level+1)+" - Key / Name = "+value[1]+" / Type = "+value[0]+" / Value = "+str(value[2]))
codespell -L aci,addmin,afile,ake,aline,alle,alledges,alocation,als,ang,anid,anormal,anull,anumber,aply,apoints,ascript,ba,beginn,behaviour,bloaded,bottome,brushin,bu,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childrens,childs,colour,colours,commen,connexion,currenty,documentin,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,findn,fle,formath,fpt,freez,froms,graphin,hist,iff,incrementin,indexin,indicies,indx,initialisation,initialise,initialised,initialises,initialisiert,inout,invertin,ist,itsel,kilometre,leadin,linez,localy,lod,mantatory,mata,methode,metres,mke,millimetre,modell,nam,nd,noe,normale,normaly,nto,numer,oce,oder,ontop,orgin,orginx,orginy,ot,pard,parm,parms,pointin,pres,programm,propt,que,rady,recurrance,renderin,rin,ro,rougly,sav,sectionin,seh,seperator,ser,sergent,serie,shs,sinc,siz,som,strack,strin,substraction,te,technic,textin,thist,thru,tread,tru,ue,uint,unter,uptodate,usind,vas,vertexes,vew,wallthickness,whitespaces,zuser -S "./.git,*.po,*.ts
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
| External Projects | |
| Voxel Workench | |
| https://github.com/JMG1/VoxelWorkbench |
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 -d '\n' -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)