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 | |
namespace Tests; | |
trait CountsDatabaseQueries | |
{ | |
protected $recordedDatabaseQueries = []; | |
protected function countDatabaseQueries() | |
{ |
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
#!/bin/bash | |
T=`ffprobe -i "$1" -v quiet -show_entries format=duration -hide_banner | grep duration | cut -f2 -d'='` && echo "${T}/60" | bc |
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
#!/bin/bash | |
#set -e | |
if [ $# != 1 ]; | |
then | |
echo 'Please supply a laravel version to check' | |
exit 1 | |
fi |
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 | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
class ReformatRoutes extends Command | |
{ | |
protected $signature = 'route:reformat-l8 {--file=web} {--dry-run}'; |
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
createbuckets: | |
image: minio/mc | |
depends_on: | |
- minio | |
entrypoint: > | |
/bin/sh -c " | |
/usr/bin/mc config host add myminio http://minio:9000 AKIAIOSFODNN7EXAMPLE wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY; | |
/usr/bin/mc rm -r --force myminio/somebucketname; | |
/usr/bin/mc mb myminio/somebucketname; | |
/usr/bin/mc policy download myminio/somebucketname; |
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
version: "3.7" | |
services: | |
traefik: | |
image: traefik:v2.1.3 | |
restart: always | |
container_name: traefik | |
ports: | |
- target: 80 | |
published: 80 |
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
FROM whatever | |
ARG GIT_URL | |
ENV GIT_URL=${GIT_URL} | |
RUN git clone "${GIT_URL}" | |
# docker build --build-arg GIT_URL=https://.... -t myimage . |
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
version: "3.3" | |
services: | |
################################################ | |
#### Traefik Proxy Setup ##### | |
############################################### | |
traefik: | |
image: traefik:v2.0 | |
restart: always | |
container_name: traefik |
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
version: "3.3" | |
services: | |
wordpress: # <== we aren't going to open :80 here because traefik is going to serve this on entrypoint 'web' | |
## :80 is already exposed from within the container ## | |
image: wordpress | |
restart: always | |
container_name: wp | |
environment: |
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
labels: | |
- "traefik.backend=${TRAEFIK_BACKEND}" | |
- "traefik.docker.network=proxy" | |
- "traefik.frontend.rule=Host:${TRAEFIK_HOSTNAME}" | |
- "traefik.enable=true" | |
- "traefik.port=80" | |
- "traefik.default.protocol=http" | |
NewerOlder