Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@bluecadet/cadet
Advanced tools
npm install -g @bluecadet/cadet
web
), point MAMP to the webrootcadet setup-local
cadet pull
composer install
npm install
run terminus build:project:create ...
terminus build:project:create --team="Bluecadet" --org="bluecadet" --email="bc-bot@bluecadet.com" --admin-email="bc-bot@bluecadet.com" --visibility="private" d8 [PROJECT_NAME]
terminus build:project:create --team="Bluecadet" --org="bluecadet" --email="bc-bot@bluecadet.com" --admin-email="bc-bot@bluecadet.com" --visibility="private" wp [PROJECT_NAME]
clone new github repo locally
create develop
branch
in github settings, set developp as default branch
fire up MAMP, create new local site and database
run cadet setup-project
commit changes
Drupal: verify config directory in settings.php
WordPress: update WP_HOME
and WP_SITEURL
definitions in wp-config-local.php
run cadet pull
Drupal: run drush cex
and commit changes
run cadet new-theme
to create new FE theme
commit changes
In CircleCI project settings, turn off "Only build pull requests"
run cadet ci-update --incTestConfig
to add the latest ci files and changes and base test files
commit changes
TODO: Setup RaspberryPi with stuff.....
Once connected to the Bluecadet Network, office or VPN.
SSH into the raspi, ssh pi@[IP ADDRESS]
Don't think to hard about the password.
run crontab -l
to get familiar with what we will be doing. We typically want to run daily tasks on each environment. Feel free to run as many different commands, but please keep blocks together in each project.
cd to /usr/local/bin where we store all the scripts, cd /usr/local/bin
copy "proj-template" folder, sudo cp -r proj-template/ [PROJECT NAME]
edit files inside your new project directory. All Actions are commented out. Add what you need.
cd [PROJECT NAME]
sudo nano dev-daily
and repeat for all files...Add new commands to the crontab
crontab -e
# [PROJECT_NAME]
# contact: [your name] [your email]
10 1 * * * /usr/local/bin/[PROJECT_NAME]/dev-daily >> /home/pi/Documents/cron-[PROJECT_NAME].log 2>&1
5 1 * * * /usr/local/bin/[PROJECT_NAME]/test-daily >> /home/pi/Documents/cron-[PROJECT_NAME].log 2>&1
0 1 * * * /usr/local/bin/[PROJECT_NAME]/live-daily >> /home/pi/Documents/cron-[PROJECT_NAME].log 2>&1
45 1 * * * /usr/local/bin/[PROJECT_NAME]/copy-down-daily >> /home/pi/Documents/cron-[PROJECT_NAME].log 2>&1
/usr/local/bin/[PROJECT_NAME]/dev-daily
and check the outputcrontab: installing new crontab
.setup-project
$ cadet setup-project
Use when starting a new project. (Should only be ran once per project)
Features:
setup-local
setup-local
$ cadet setup-local
Use when onboarding to an existing project that uses cadet. Creates local files for development.
Features:
new-theme
$ cadet new-theme
Creates new themes in a Drupal or WordPress project. MULTIPLE OPTIONS CAN BE SELECTED, USE SPACEBAR TO SELECT IN THE PROMPT.
Features:
pull
$ cadet pull
$ cadet pull --exclude=...
$ cadet pull --force|-f
Pull database and/or files from a Pantheon source into project.
--exclude
:
Use this flag to exclude files or directories from being pulled. Seperate paths with using a comma.
$ cadet pull --exclude=private
$ cadet pull --exclude=private,public/not-this.jpeg
--force -f
:
When pulling a database, cadet will look for a backup created within the past 'X' number of minutes, which is added during setup (and stored in the bac_exp
value of .cadet/local-db.json
)
Using the --force
or -f
flag will override the default value and force a new database backup to be created in Pantheon.
ci-update
$ cadet ci-update
Update CI processes to a specific version. More to come...
github-label
$ cadet github-label
Create commonly used GitHub labels in the project repo.
Error: ENOENT: no such file or directory, scandir '[...]/node_modules/node-sass/vendor'
, run node node_modules/node-sass/scripts/install.js
and npm rebuild node-sass
(https://github.com/sass/node-sass/issues/1579#issuecomment-227661284)chalk.cyan('text')
chalk.yellow.bold('text')
chalk.blue('text')
(when appropriate, use ...
before and after message)chalk.green('text')
chalk.white.bgRed('text')
chalk.yellow('text')
FAQs
Unknown package
The npm package @bluecadet/cadet receives a total of 0 weekly downloads. As such, @bluecadet/cadet popularity was classified as not popular.
We found that @bluecadet/cadet demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.