File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,8 @@ Syntax highlighting is implemented using several libraries and languages:
14
14
![ Code Polyglot Pastorg Screenshot] ( image/CodePolyglot_PastorgSkin_Screenshot.png )
15
15
16
16
* Live demo: [ code.exlmoto.ru] ( https://code.exlmoto.ru ) with Highlight.js and Rouge syntax higlighters.* \
17
- * Pygments on [ GraalPython] ( https://github.com/oracle/graalpython ) are CPU and RAM intensive.*
18
-
19
- * Note: Service can sometimes be offline.*
17
+ * Warning: Pygments on [ GraalPython] ( https://github.com/oracle/graalpython ) are CPU and RAM intensive and therefore disabled.* \
18
+ * Note: Demo service may not be available.*
20
19
21
20
## API examples
22
21
Original file line number Diff line number Diff line change 1
1
Useful Tips
2
2
===========
3
3
4
+ ## Find non-ASCII symbols
5
+
6
+ ``` shell script
7
+ grep -rP ' [^\x00-\x7f]' src/ doc/ util/
8
+ ```
9
+
10
+ This command should be run at the root of the project.
11
+
12
+ ## Find TODO: labels
13
+
14
+ ``` shell script
15
+ grep -ri TODO src/ doc/ util/
16
+ ```
17
+
18
+ This command should be run at the root of the project.
19
+
4
20
## Find all files without line ending at the end
5
21
6
22
``` shell script
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ server {
20
20
proxy_set_header X-Forwarded-Port $server_port;
21
21
}
22
22
23
+ # Drop brute-force attack on some paths.
24
+ # Test:
25
+ # $ ab -n 100 -c 10 code.exlmoto.ru/api
23
26
location ~ ^/(edit|api|login)$ {
24
27
limit_req zone=one burst=1 nodelay;
25
28
proxy_pass http://localhost:8080/$1$is_args$args;
You can’t perform that action at this time.
0 commit comments