(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| h scroll left | |
| j scroll down | |
| k scroll up | |
| l scroll right | |
| gg scroll to top of the page | |
| G scroll to bottom of the page | |
| f activate link hints mode to open in current tab | |
| F activate link hints mode to open in new tab | |
| r reload |
sudo apt-get install ghostscriptiapi.h etc) which are required but don't come with the default Ghostscript package: sudo apt-get install libgs-devsudo apt-get install gs-espsudo apt-get --purge remove imagemagickcd ImageMagick-xx./configure --with-gslib=yes [and what else you need]gslib yes yes and not gslib yes nomakemake installconvert -list configure | grep DELEGATES => DELEGATES bzlib djvu freetype gs jpeg jng jp2 lcms png tiff x11 xml zlib| -- Two dashes start a one-line comment. | |
| --[[ | |
| Adding two ['s and ]'s makes it a | |
| multi-line comment. | |
| --]] | |
| ---------------------------------------------------- | |
| -- 1. Variables and flow control. | |
| ---------------------------------------------------- |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| /* ******************************************************************************************* | |
| * THE UPDATED VERSION IS AVAILABLE AT | |
| * https://github.com/LeCoupa/awesome-cheatsheets | |
| * ******************************************************************************************* */ | |
| // 0. Synopsis. | |
| // http://nodejs.org/api/synopsis.html |
| # Access number | |
| cat production.log | grep "^Processing" | wc | awk '{print $1}' | |
| # Each IP access number | |
| cat production.log | grep “^Processing” | awk ‘{print $4}’ | uniq -c | |
| # Independent IP number | |
| cat production.log | grep "^Processing" | awk '{print $4}' | uniq | wc | awk '{print $1}' | |
| cat production.log | grep “^Processing” | awk ‘{print $4}’ | uniq | wc -l |
| # read more at https://terrty.net/2014/ssl-tls-in-nginx/ | |
| # latest version on https://gist.github.com/paskal/628882bee1948ef126dd/126e4d1daeb5244aacbbd847c5247c2e293f6adf | |
| # security test score: https://www.ssllabs.com/ssltest/analyze.html?d=terrty.net | |
| # your nginx version might not have all directives included, test this configuration before using in production against your nginx: | |
| # $ nginx -c /etc/nginx/nginx.conf -t | |
| server { | |
| # public key, contains your public key and class 1 certificate, to create: | |
| # (example for startssl) | |
| # $ (cat example.com.pem & wget -O - https://www.startssl.com/certs/class1/sha2/pem/sub.class1.server.sha2.ca.pem) | tee -a /etc/nginx/ssl/domain.pem > /dev/null |
Замечали ли вы, что когда вы набираете что-то в google или yandex с ошибками, вас поправляют?
Возможно вы искали ... ?
Данная концепция называется триграммным поиском, она позволяет искать слова и фразы с опечатками.
Каждое слово делится на сочетания из 3х букв – триграммы. На примере слова "Россия", будет: