Skip to content

Commit e168f08

Browse files
committed
Update comments and documents
1 parent e30fc77 commit e168f08

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

ReadMe.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ Syntax highlighting is implemented using several libraries and languages:
1414
![Code Polyglot Pastorg Screenshot](image/CodePolyglot_PastorgSkin_Screenshot.png)
1515

1616
*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.*
2019

2120
## API examples
2221

doc/UsefulTips.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
Useful Tips
22
===========
33

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+
420
## Find all files without line ending at the end
521

622
```shell script

util/nginx/code.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ server {
2020
proxy_set_header X-Forwarded-Port $server_port;
2121
}
2222

23+
# Drop brute-force attack on some paths.
24+
# Test:
25+
# $ ab -n 100 -c 10 code.exlmoto.ru/api
2326
location ~ ^/(edit|api|login)$ {
2427
limit_req zone=one burst=1 nodelay;
2528
proxy_pass http://localhost:8080/$1$is_args$args;

0 commit comments

Comments
 (0)