This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generates patch file between two directories | |
git diff --no-index directoryOldVersion directoryNewVersion > some-file-name.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Example of some commonly used functions. | |
*/ | |
use Drupal\Core\Link; | |
use Drupal\Core\Url; | |
use Drupal\Component\Utility\Html; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker rmi $(docker images --filter "dangling=true" -q --no-trunc) | |
docker system prune -a | |
docker rm -vf $(docker ps -a -q) | |
docker rmi -f $(docker images -a -q) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include .env | |
.PHONY: up down stop prune ps shell dbdump dbrestore uli cim cex | |
default: up | |
up: | |
@echo "Starting up containers for for $(PROJECT_NAME)..." | |
docker-compose pull | |
docker-compose up -d --remove-orphans |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Mixin | |
@mixin nth-child($i...) { | |
$selectors: (); | |
@each $num in $i { | |
$selectors: join($selectors, unquote('&:nth-child(#{$num})'), comma); | |
} | |
#{$selectors} { | |
@content; |