Skip to content

Instantly share code, notes, and snippets.

Avatar
Focusing

David Woodward vSanjo

Focusing
View GitHub Profile
@vSanjo
vSanjo / create-node-template.sh
Last active Oct 12, 2020
Create Simple Note Template
View create-node-template.sh
touch .babelrc .env .env.example .gitignore .prettierrc postcss.config.js .eslintrc.json webpack.config.js \
&& mkdir src tests \
&& touch tests/.gitkeep \
&& mkdir src/api src/config src/frontend src/jobs src/models src/services src/subscribers src/loaders \
&& touch src/app.js src/api/index.js src/config/.gitkeep src/loaders/index.js src/subscribers/.gitkeep src/jobs/.gitkeep src/models/.gitkeep src/services/.gitkeep \
&& mkdir src/middlewares src/routes \
&& touch src/middlewares/index.js src/routes/index.js \
&& mkdir src/frontend/assets \
&& mkdir src/frontend/assets/scss src/frontend/assets/js src/frontend/assets/static \
&& touch src/frontend/assets/scss/.gitkeep src/frontend/assets/js/.gitkeep \
View IT(S)CSS Setup
cd scss
mkdir -p settings tools generic elements objects components utilities
cd settings && touch _settings.scss && echo "/** Main Settings Loader */\n" > _settings.scss && cd ..
cd tools && touch _tools.scss && echo "/** Main Tools Loader */\n" > _tools.scss && cd ..
cd generic && touch _generic.scss && echo "/** Main Generic Loader */\n" > _generic.scss && cd ..
cd elements && touch _elements.scss && echo "/** Main Elements Loader */\n" > _elements.scss && cd ..
cd objects && touch _objects.scss && echo "/** Main Objects Loader */\n" > _objects.scss && cd ..
cd components && touch _components.scss && echo "/** Main Components Loader */\n" > _components.scss && cd ..
cd utilities && touch _utilities.scss && echo "/** Main Utilities Loader */\n" > _utilities.scss && cd ..
echo "/** Main SCSS Loader */\n\n@import 'settings/_settings.scss';\n@import 'tools/_tools.scss';\n@import 'generic/_generic.scss';\n@import 'elements/_elements.scss';\n@import 'objects/_objects.scss';\n@import 'components/_components.scss'
@vSanjo
vSanjo / script.sh
Last active Dec 18, 2019
Backup MacOS
View script.sh
# Ideally you could put this in your crontab, maybe for once a day.
cd ~/Desktop && brew list > brew-list.txt && (brew cask list > brew-cask-list.txt & code --list-extensions > code-list-extensions.txt & pip list > pip-list.txt & crontab -l > crontab-l.txt & gem list > gem-list.txt & command ls -lAh /Applications/ > ls-applications.txt & npm -g list > npm-g-list.txt & yarn global list > yarn-global-list.txt) && zip macos-backup-$(date +"%m-%d-%y").zip -9 -v -T -ll -m brew-list.txt brew-cask-list.txt crontab-l.txt gem-list.txt ls-applications.txt npm-g-list.txt yarn-global-list.txt code-list-extensions.txt && cd -1
@vSanjo
vSanjo / gist:d6b161d8c28810ba30dcce8fb6617490
Last active Dec 11, 2019
Generic gitignore.io Settings
View gist:d6b161d8c28810ba30dcce8fb6617490
https://www.gitignore.io/api/
node,
linux,
macos,
windows,
craftcms,
phpstorm,
notepadpp,
phpstorm+iml,
phpstorm+all,
@vSanjo
vSanjo / Configuration.h
Last active Feb 17, 2018
Midna (Anet A8 Marlin Configuration)
View Configuration.h
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
You can’t perform that action at this time.