Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
- Change the root password! | |
- System Settings > Security | |
- General: Set Password required to "instant" | |
- FileVault: activate | |
- System Setting > Keyboard | |
- Set all key speeds to "fast" | |
- Mark checkbox to use "fn" keys without option key | |
- Generate SSH-Key: ssh-keygen -t rsa -C "email@provider.com" -b 2048 | |
- Change desktop background :) | |
- Install PHPstorm + Java |
<?php | |
namespace Drupal\mymodule\Form; | |
use Drupal\Core\Form\FormBase; | |
use Drupal\Core\Form\FormStateInterface; | |
/** | |
* Provides a custom form. | |
*/ |
Github CLI is a console tool for working on interactions with Github from terminal. This tool allow to add new extension by developing them and adding to the main gh
prompt as sub-commands from your command line. Read More about how to implement custom Github CLI extensions.
For this example we use a private extension not available for public purposes but you can explore some others existing Github CLI extensions. See the list of available extensions at https://github.com/topics/gh-extension.
In order to follow the next steps just change [RESOURCE]
by your marked extension.
Allow about one hour to follow this tutorial and become familiar with BLT. To save time, create the Acquia Cloud Free environment before you start the tutorial.
This tutorial assumes you are on a Mac, but I also wrote a quick start for Drupal and BLT on Windows 10.
- Before you begin:
- Create the Github repo
#!/bin/bash | |
# Get all Drupal sites | |
sites=`find . -maxdepth 1 -type d -print | grep -v '/all$' | grep -v '/default$' | grep -v '\.$'` | |
echo "Choose the commande to execute : " | |
echo "1. update" | |
echo "2. put sites offline" | |
echo "3. put sites online" | |
echo "4. clear all cache" |
Getting basic info of the situation of your project: status, branches, current branch, naming of remote repo.
alias gs='git status'
alias gb='git branch'
alias gr='git remote -v'
alias gp='git rev-parse --abbrev-ref HEAD'
Getting info from 'Git log' about last commits, last changed files in 12 months by order and by commit message.
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
Some actions you can take inside a hook in .module files, using services for getting user data programmatically.
- David Rodríguez, @davidjguru.
- Github main profile: https://github.com/davidjguru.
- Contact at davidjguru@gmail.com
- Website: https://therussianlullaby.com