grep -rnw '/path/to/somewhere/' -e 'pattern'
- pass properties to children react props by using React.cloneElement
- using withStyles from @material-ui/core/styles for react-admin
git add submodule [url] name
git submodule deinit -f path/to/submodule
rm -rf .git/modules/path/to/submodule
git rm -f path/to/submodule
remove trailing / at end of apis
"files.associations": { ".js":"javascriptreact", ".ts": "typescriptreact", ".jsx": "javascriptreact", ".tsx":"typescriptreact" },
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + find . -name "node_modules" -type d -prune -print | xargs du -chs find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' ;
- logger for js: loglevel
find . -maxdepth 1 -type d \( ! -name . \) -exec sh -c "cd '{}' && echo '>>>>>>>> run in {}' && rm -rf node_modules && npm install" \;
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
ps2pdf -dPDFSETTINGS=/ebook input.pdf output.pdf
hdiutil makehybrid -o ~/Desktop/image.iso ~/path/to/folder/to/be/converted -iso -joliet
mkdir /mnt/cdrom
mount -t iso9660 -o ro /dev/sr0 /mnt/cdrom
lsblk
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);