The script will remove failed and cancelled workflow runs from your GitHub Action workflow history log.
- GitHub CLI installed.
The script will remove failed and cancelled workflow runs from your GitHub Action workflow history log.
I use this GitHub Action to security test our WordPress themes
So what does the GitHub Action do?
It;
First, disable multible tabs: Set
Workbench > Editor: Show Tabs
to single
Included in VS Code:
Control+Tab
: Next FileShift+Control+Tab
: Previous FileCustom, add the code in keybindings.json to VS Code (Shift+Command+P
, select Preferences: Open Keybord Shortcuts (JSON)
)
Option+Tab
: Next Workspace (file picker)AFD WAF Managed Rules DRS 2.1 blocks WordPress. The below WP* custom rules let you access WordPress URLs that you need. I also implemented a rate-limiting rule to prevent brute force attacks.
The WP* rules are based on the OWASP CRS - WordPress Rule Exclusions Plugin rules
resource wafPolicy 'Microsoft.Network/FrontDoorWebApplicationFirewallPolicies@2022-05-01' = { | |
name: wafPolicyName | |
location: 'global' | |
sku: { | |
name: frontDoorSkuName | |
} | |
tags: tags | |
properties: { | |
policySettings: { | |
enabledState: 'Enabled' |
I did this to show how easy it is to create your own media inserter. In production I would create a a server that returns the json.
wp-content/plugins
run npx @wordpress/create-block@latest my-image-inserter
cd my-image-inserter
my-image-inserter/src/index.js
my-image-inserter/my-image-inserter.php
my-image-inserter/plugin.php
# GitHub CLI aliases | |
eval "$(gh copilot alias -- zsh)" # or bash | |
# Old school aliases | |
alias '??'='ghcs' | |
alias 'git?'='ghcs -t git' | |
alias 'gh?'='ghcs -t gh' | |
alias 'explain'='ghce' |
services: | |
buggregator: | |
image: ghcr.io/buggregator/server:latest | |
depends_on: | |
buggregator-database: | |
condition: service_healthy | |
ports: | |
- 127.0.0.1:8000:8000 # Sentry, Ray | |
- 127.0.0.1:1025:1025 # SMTP | |
environment: |
Plugin Previews are now available for opt-in, I've added a live preview to my block plugin
On wordpress.org, there are two things required for a plugin preview button to appear to all users:
blueprint.json
file must be provided in the plugins assets/blueprints
sub-directory.Read the blueprint documentation for more information.
@soderlind: I need a bash script that read a list of domains from disk and use az cli to remove the domains from azure front door. I have several azure front doors in the resource group.
GitHub Copilot: Here's a step-by-step plan for the bash script:
az network front-door frontend-endpoint delete
command to delete the domain from each Azure Front Door in the resource group.az network front-door list
command with the resource group name.