Simple scanner to find potentially unsafe files inside a Drupal installation. Each output should be manually processed.
php drupalscanner.php myfolder
service cloud.firestore { | |
match /databases/{database}/documents { | |
// USERS // | |
function isAuthenticated() { | |
return request.auth != null; | |
} | |
function userExists(uid) { |
package main | |
import ( | |
"fmt" | |
"sort" | |
) | |
type Student struct { | |
Name string | |
Grade int |
package main | |
import ( | |
"log" | |
"net/http" | |
"sync" | |
"github.com/garyburd/redigo/redis" | |
"github.com/gorilla/websocket" | |
uuid "github.com/satori/go.uuid" |
<?xml version="1.0"?> | |
<!-- | |
/** | |
* Copyright © 2016 Magento. All rights reserved. | |
* See COPYING.txt for license details. | |
*/ | |
--> | |
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> | |
<body> | |
<!-- Remove unwanted account navigation links --> |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
# https://www.nginx.com/blog/tuning-nginx/ | |
worker_connections 1024; | |
# Limit the number of connections NGINX allows, for example from a single client | |
# IP address. Setting them can help prevent individual clients from opening too | |
# many connections and consuming too many resources. | |
server { | |
# When several limit_conn directives are specified, any configured limit will apply. | |
limit_conn perip 10; | |
limit_conn perserver 100; |
To remove a submodule you need to:
git checkout -b T1234-boo-foo
git commit -am 'first'
git commit -am 'now it works'
arc lint
arc diff
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.