Create a linux SWAP file:
https://linuxize.com/post/create-a-linux-swap-file/
#linux #swap #swapfile #swappiness #swapon #mkswap
  
  https://linuxize.com/post/create-a-linux-swap-file/
#linux #swap #swapfile #swappiness #swapon #mkswap
Linuxize
  
  Create a Linux Swap File
  Swap is a space on a disk that is used when the amount of physical RAM memory is full. When a Linux system runs out of RAM, inactive pages are moved from the RAM to the swap space.
  Forwarded from Quera
  
🔹مسابقاتِ برنامهنویسیِ Backend و Frontend تومن 
در این مسابقه سوالاتِ🔹بکاند، Python و Django و 🔹فرانتاند Front-End و Reactjs میباشد.
👈علاقهمندان میتوانند به صورت مجزا در این دو مسابقه شرکت کنند.
🔹همراه با ۳ میلیون جایزه نقدی
☝️از نفرات برتر این مسابقه جهت استخدام در شرکت تومن دعوت به عمل میآید.
⏳زمان مسابقه: ۲۱ تیرماه روز جمعه
ثبتنام از در این مسابقه از طریق:👇
🔹https://quera.ir/r/dpi1h
➖➖➖➖➖➖➖
@Quera_ir
  در این مسابقه سوالاتِ🔹بکاند، Python و Django و 🔹فرانتاند Front-End و Reactjs میباشد.
👈علاقهمندان میتوانند به صورت مجزا در این دو مسابقه شرکت کنند.
🔹همراه با ۳ میلیون جایزه نقدی
☝️از نفرات برتر این مسابقه جهت استخدام در شرکت تومن دعوت به عمل میآید.
⏳زمان مسابقه: ۲۱ تیرماه روز جمعه
ثبتنام از در این مسابقه از طریق:👇
🔹https://quera.ir/r/dpi1h
➖➖➖➖➖➖➖
@Quera_ir
Did you know that python 
#python #print #sep #separator
  print command takes sep argument as a separator between string arguments?print('ali', 'reza', sep=', ') # output: ali, reza#python #print #sep #separator
https://www.thoughtworks.com/insights/blog/rest-api-design-resource-modeling
#RESTAPI #REST #API #collection #resource #CQRS #CRUD #URI #URN #REST_API
  
  #RESTAPI #REST #API #collection #resource #CQRS #CRUD #URI #URN #REST_API
Thoughtworks
  
  REST API Design - Resource Modeling
  “The key abstraction of information in REST is a resource. Any information that can be named can be a resource: a document or image, a temporal service (e.g. "today's weather in Los Angeles"), a collection of other resources, a non-virtual object (e.g. a…
  https://stackoverflow.com/questions/18770545/why-is-my-git-submodule-head-detached-from-master
#stackoverflow #git #submodule
  
  #stackoverflow #git #submodule
Stack Overflow
  
  Why is my Git Submodule HEAD detached from master?
  I am using Git submodules. After pulling changes from server, many times my submodule head gets detached from master branch. 
Why does it happen?
I have to always do:
git branch
git checkout mas...
  Why does it happen?
I have to always do:
git branch
git checkout mas...
Add health check to 
- https://github.com/grpc-ecosystem/grpc-health-probe
#grpc #health #health_check
  
  gRPC services and use this command line tool to check for service status:- https://github.com/grpc-ecosystem/grpc-health-probe
#grpc #health #health_check
GitHub
  
  GitHub - grpc-ecosystem/grpc-health-probe: A command-line tool to perform health-checks for gRPC applications in Kubernetes and…
  A command-line tool to perform health-checks for gRPC applications in Kubernetes and elsewhere - grpc-ecosystem/grpc-health-probe
  ghz:- Simple
gRPC benchmarking and load testing tool inspired by hey and grpcurl.sample
ghz command to load test a service:ghz --insecure --proto my_proto.proto --call my_proto.AService.MethodById -d '{"user_id": "5d32b19b6fea7a28de186b15"}' 0.0.0.0:9000The sample output will be:
Summary:
Count: 200
Total: 557.11 ms
Slowest: 319.18 ms
Fastest: 33.30 ms
Average: 132.56 ms
Requests/sec: 358.99
Response time histogram:
33.300 [1] |
61.887 [6] |∎∎
90.475 [98] |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
119.062 [23] |∎∎∎∎∎∎∎∎∎
147.650 [12] |∎∎∎∎∎
176.238 [10] |∎∎∎∎
204.825 [7] |∎∎∎
233.413 [12] |∎∎∎∎∎
262.000 [9] |∎∎∎∎
290.588 [9] |∎∎∎∎
319.176 [13] |∎∎∎∎∎
Latency distribution:
10% in 70.25 ms
25% in 83.84 ms
50% in 89.90 ms
75% in 178.51 ms
90% in 275.84 ms
95% in 301.41 ms
99% in 317.01 ms
Status code distribution:
[OK] 200 responses
#grpc #loadtest #ghz #grpcurl #hey #proto
  Tech C**P
ghz:         - Simple gRPC benchmarking and load testing tool inspired by hey and grpcurl.  sample ghz command to load test a service:  ghz --insecure --proto my_proto.proto --call my_proto.AService.MethodById -d '{"user_id": "5d32b19b6fea7a28de186b15"}' 0.0.0.0:9000…
you can give 
  --format json option to ghz in order to get average response time or the slowest in order to use in gitlab pipelines for example