- Spin up new resources in the site in glb-terraform. Example PR: https://github.com/github/glb-terraform/pull/319
- Open sites PR to open the port for actions proxy in that site. Example PR: https://github.com/github/sites/pull/3057
- One the glb-terraform PR is merged, get the IPs for PE and the ALBs (use copilot)
- Open a GLB PR referencing those IPs, and adding the actions proxy config and tests for all services (api, dotcom, codeload) example PR: https://github.com/github/glb/pull/9657
- Once the GLB PR is approved, deployed and merged, enable the routes in the site. See https://github.com/github/glb/blob/master/docs/actions-proxy-routes.md#stop--start
- Update the vanity URLs with the new public LB IP so that it can be georouted to.
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
| # Configure the Azure provider | |
| terraform { | |
| required_providers { | |
| azurerm = { | |
| source = "hashicorp/azurerm" | |
| version = "~> 3.0.2" | |
| } | |
| } | |
| required_version = ">= 1.1.0" |
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 | |
| set -e # Exit on error | |
| # disable resolved | |
| sudo systemctl stop systemd-resolved | |
| sudo systemctl disable systemd-resolved | |
| echo "Updating system packages..." | |
| sudo apt update && sudo apt install -y curl gnupg lsb-release sqlite3 |
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 | |
| /** | |
| * Returns uploads info for given subsite or primary site. | |
| * | |
| * @param int $blog_id Optional, defaults to primary. | |
| * | |
| * @return array | |
| * | |
| * NOTE: Must be run from primary site. |
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 | |
| if ( ! defined( 'WFWAF_VERSION' ) ) { | |
| exit( 'Access denied' ); | |
| } | |
| /* | |
| This file is generated automatically. Any changes made will be lost. | |
| */ | |
| $this->failScores['sqli'] = 100; | |
| $this->failScores['xss'] = 100; |
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
| const shell = require( 'shelljs' ); | |
| shell.echo( | |
| shell.cat('./src/wp-migrate-db-pro/wp-migrate-db-pro.php').grep( /.*\['version'] = '(.*)';/ ) | |
| .replace(/.*\['version'] = |'|;|\./g, '') | |
| ); |
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
| const myfunc = () { | |
| console.log('WAT'); | |
| } | |
| myfunc`` | |
| // WAT |
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/sh | |
| sudo brew services stop nginx | |
| sudo brew services stop php71 | |
| sudo brew services stop dnsmasq | |
| sudo brew services stop mysql | |
| sudo brew services start nginx | |
| sudo brew services start php71 | |
| sudo brew services start dnsmasq | |
| sudo brew services start mysql |
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 | |
| $PATH = '/your/folder/path'; | |
| //ZipArchive | |
| //Test 1 | |
| $time_start = microtime( true ); |
NewerOlder