π
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
<IfModule mod_security.c> | |
SecFilterEngine Off | |
SecFilterScanPOST Off | |
</IfModule> | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] |
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 | |
function prefix_add_amp_component_script( $data ) { | |
$data['amp_component_scripts']['amp-accordion'] = 'https://cdn.ampproject.org/v0/amp-accordion-0.1.js'; | |
return $data; | |
} | |
add_filter( 'amp_post_template_data', 'prefix_add_amp_component_script' ); |
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
rm -rf /Applications/Steam.app ~/Library/Application\ Support/Steam/ |
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
SetEnv DB_USER root | |
SetEnv DB_PASSWORD test | |
SetEnv DB_HOST db | |
###### All content of apache2.config | |
Listen 7001 | |
<VirtualHost *:7001> | |
DocumentRoot /var/www/html/api.local | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined |
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 | |
for file in *.twig; | |
do | |
output="${file//-/_}" # convert all - to _ | |
output="${output/.twig/_php_output_array}" # convert .twig to _php_output_array | |
init_output="<?php\n\n\$${output} = array();\n/** \n" | |
return_output="\n*/\nreturn \$${output};" | |
file_content=$(cat $file) | |
echo "${init_output}\n$file_content\n${return_output}" > "$file"; |
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
sonar-scanner \ | |
-Dsonar.projectKey=sample-project \ | |
-Dsonar.sources=. \ | |
-Dsonar.exclusions=vendor/**/* \ | |
-Dsonar.host.url=https://localhost:9000 \ | |
-Dsonar.login=keeeeeey |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit bootstrap="./tests/TestHelper.php" | |
backupGlobals="false" | |
backupStaticAttributes="false" | |
verbose="true" | |
colors="false" | |
convertErrorsToExceptions="true" | |
convertNoticesToExceptions="true" | |
convertWarningsToExceptions="true" | |
processIsolation="false" |
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 | |
# It is good practice to print the required versions on server. | |
# cause the code will execute in SSH non interactively mode. | |
# https://stackoverflow.com/questions/17089808/how-to-do-remote-ssh-non-interactively | |
echo "NodeJS: "$(node -v) | |
echo "NPM: "$(npm -v) | |
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
#step 0 | |
gcloud config set project your_project_id_here | |
gsutil cp -r gs://$DEVSHELL_PROJECT_ID/ . | |
tar -xf source_code_file | |
#step1 | |
docker build . -t echo-app | |
docker tag echo-app gcr.io/$DEVSHELL_PROJECT_ID:latest | |
docker push gcr.io/$DEVSHELL_PROJECT_ID:latest |
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
resources: | |
- type: compute.v1.instance | |
name: vm-test | |
properties: | |
zone: {{ properties["zone"] }} | |
machineType: https://www.googleapis.com/compute/v1/projects/{{ env["project"] }}/zones/{{ properties["zone"] }}/machineTypes/f1-micro | |
# For examples on how to use startup scripts on an instance, see: | |
# https://cloud.google.com/compute/docs/startupscript | |
metadata: | |
items: |