This gist is a follow-up to this Lando issue, updated for Docker Composer and Windows (but might also help macOS and Linux users).
This file contains hidden or 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
/* eslint-disable import/no-extraneous-dependencies, @wordpress/dependency-group */ | |
/** | |
* External dependencies | |
*/ | |
const { sync: globSync } = require('fast-glob'); | |
const MiniCSSExtractPlugin = require('mini-css-extract-plugin'); | |
const path = require('path'); | |
const BrowserSyncPlugin = require('browser-sync-webpack-plugin'); | |
const RemoveEmptyScriptsPlugin = require('webpack-remove-empty-scripts'); |
This file contains hidden or 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 | |
/** | |
* @package GrafikBasePlugin | |
*/ | |
namespace Lib\Services\Components; | |
use Lib\Services\ServicesBase; | |
use Lib\Services\Service; |
This file contains hidden or 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 | |
declare(strict_types=1); | |
use League\OAuth2\Client\Provider\GenericProvider; | |
use Microsoft\Graph\Graph; | |
use Microsoft\Graph\Model; | |
const APP_SESS_ID = 'AZPHPSID'; | |
const OAUTH_APP_ID = ''; |
This file contains hidden or 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 | |
const PASSPHRASE = ''; // use 'openssl rand -hex 32' to generate key, same with python | |
function encrypt(array $data): string | |
{ | |
$data_json_64 = base64_encode(json_encode($data)); | |
$secret_key = hex2bin(PASSPHRASE); | |
$iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-gcm')); | |
$tag = ''; | |
$encrypted_64 = openssl_encrypt($data_json_64, 'aes-256-gcm', $secret_key, 0, $iv, $tag); |
This file contains hidden or 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
name: wordpress | |
recipe: wordpress | |
services: | |
appserver: | |
webroot: . | |
xdebug: debug | |
config: | |
php: .vscode/php.ini | |
tooling: | |
install:wordpress: |
follow this guide https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/
or
ssh-keygen
eval $(ssh-agent)
ssh-add ~/.ssh/
This file contains hidden or 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 | |
/** | |
* The plugin bootstrap file | |
* | |
* @wordpress-plugin | |
* Plugin Name: AcfRepeater | |
* Description: Add acf-repeater dynamic tag | |
* Version: 1.0.0 | |
* License: GPL-2.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
This file contains hidden or 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 | |
# Make sites into bedrock or normal WordPress | |
# Version 2.0 | |
# Copyright (c) Kenny Eliason | |
set -a | |
source .env | |
set +a |
This file contains hidden or 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
# This is a sample build configuration for PHP. | |
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: php:7.4-fpm | |
definitions: | |
services: | |
mysql: |
NewerOlder