Comments (2)
- rest_framework.throttling.
Throttle классы простые штуки.
Базовая функция get_indent()
- Anon: по REMOTE_ADDR или HTTP_X_FORWARDED_FOR
- User: по user_id
Есть 3 вида Anon, User, и ScopeRate - (объединение нескольких по scope_attr)
Если тормозит psql куда смотрим.
- Если есть, pg_statement_stat - расширение смотрим стату там
- Смотрим висящие запросы
- Настраиваем логи, logs more than - без перезагрузки
from g10k.github.io.
Полезные команды bash
Цикл по файлам
for f in *.xlsx; do echo $f done
;for f in $(ls *.xlsx); do echo $f done;
# неверно, потому что файлы с пробелом в названии будут разбиваться на несколько.IFS='\n' for f in $(ls *.xlsx); do echo $f done;
# вот так сработает
comm - сравнение файлов, Intersection.
Если у вас xml файл в одну строчку и его невозможно читать, упростит:
xmllint --format file # pygmentize -l xml
- делает цветным, но надо целиком
xmllint --format -
# "-" - читает из stdin
xmllint - есть опция -xpath но она еще подлежит изучению.
Нарезка файлов:
- строки:
все кроме первой строки
tail -n +2 filename.txt
срез по номерам строк
awk 'NR>1&&NR<3'
все кроме последних 2 строк
head -n -2 filename.txt
- столбцы:
cut -d' ' -f23
from g10k.github.io.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from g10k.github.io.