Let’s Encrypt is an SSL certificate authority managed by the Internet Security Research Group. Web server NGINX is a free, open-source, high-performance HTTP server. You can use HTTPS (an extension of HTTP with SSL / TLS encryption) on your website to secure connection. Install packages: apt updateapt install -y \ python-software-properties software-properties-common add-apt-repository ppa:certbot/certbot apt update aptContinue Reading
Tag: HTTP
How to fix git push error: RPC failed; result=22, HTTP code = 411
This error may appears when you trying to push changes into remote git repository. Don’t panic! It’s really simple to fix. Error: $ git push origin master…error: RPC failed; result=22, HTTP code = 411 fatal:The remote end hung up unexpectedly fatal:The remote end hung up unexpectedly Everything up-to-date… This is caused by a Git configurationContinue Reading
How to get a field from JSON HTTP response in Bash
jq – is a powerful tool for working with JSON in Bash. It can do more than just get a field. But in this note we’ll not describe all of its might. You should read more about jq if you write in Bash a lot. Ok, let’s move! For example we have following response: $Continue Reading
Popular nginx parameters
Web server NGINX is a free, open-source, high-performance HTTP server. Also you can use it as a reverse proxy, and IMAP/POP3 proxy server. It has many plugins to extend its functionality. Probably NGINX is the most popular web server of all. Because even if you use Apache, you should use NGINX to serve static files. CommandsContinue Reading
Siege – regression test and benchmark utility
Siege is an open source regression test and benchmark utility. It can stress test a single URL with a user defined number of simulated users, or it can read many URLs into memory and stress them simultaneously. Basic usage: siege -b -c=10 -t=5m {{ url }} Useful keys: -c, –concurrent=N How many parallel requests-t, –time=MINSmContinue Reading
Curl basic usage and examples
cUrl is a powerful tool for creating HTTP requests. If you need to make almost any HTTP request from console – use CURL! So, let’s see some curl’s keys: Options: -o {{ file }} # –output: write to file -u user:pass # –user: Authentication -v # –verbose -vv # Even more verbose -I # –head:Continue Reading