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
Datadog | |
Industry standards: practical monitoring sre notes | |
Datadog Backend: sas in the cloud | |
Datadog agent, where is it installed? | |
- for k8s is in all nodes, using helm chart override taken from https://github.com/DataDog/helm-charts/blob/main/charts/datadog/README.md | |
For vms it is installed with Ansible on each vm | |
please note, one thing is the agent and another the related instrumentation in the app for APM | |
Why monitoring? | |
Proactive monitoring |
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
https://gist.github.com/lolautruche/5694727 | |
AdminController.php | |
<?php | |
/** | |
* AcmeTestBundle/Controller/AdminController.php | |
*/ | |
namespace Acme\TestBundle\Controller; | |
use eZ\Bundle\EzPublishCoreBundle\Controller; |
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
https://qbox.io/blog/practical-guide-elasticsearch-scoring-relevancy |
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
https://www.codepunker.com/blog/3-solutions-for-multidimensional-array-sorting-by-child-keys-or-values-in-PHP |
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
# Configure variables | |
OPENSHIFT_PACKAGE=https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz | |
OPENSHIFT_HOSTNAME=openshift.xip.io | |
# Install Docker | |
sudo yum install docker -y | |
sudo usermod -aG docker ec2-user | |
# Add insecure registry to Docker |
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 | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\Debug\Debug; | |
// Ensure UTF-8 is used in string operations | |
setlocale(LC_CTYPE, 'C.UTF-8'); | |
// Environment is taken from "SYMFONY_ENV" variable, if not set, defaults to "prod" | |
$environment = getenv('SYMFONY_ENV'); |
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
Content Type: %{content_type}\n | |
HTTP Code: %{http_code}\n | |
HTTP Connect: %{http_connect}\n | |
Number Connects: %{num_connects}\n | |
Number Redirects: %{num_redirects}\n | |
Redirect URL: %{redirect_url}\n | |
Size Download: %{size_download}\n | |
Average speed download: %{speed_download}\n | |
Size Upload: %{size_upload}\n | |
SSL Verify: %{ssl_verify_result}\n |
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
<If "%{HTTP_HOST} == 'www.domain.com.co'"> | |
RedirectMatch 301 (?i)/matchpart http://anyotherdomain.co/path | |
</If> | |
Check https://perishablepress.com/case-insensitive-redirectmatch/ |
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 Resources/config/graphql/Query.types.yml | |
human: | |
type: "Human" | |
args: | |
id: | |
description: "id of the human" | |
type: "String!" | |
resolve: "@=resolver('character_human', [args])" | |
droid: | |
type: "Droid" |
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
https://www.cyberciti.biz/faq/test-ssl-certificates-diagnosis-ssl-certificate/ |
NewerOlder