This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Мой актуальный конфиг тут: https://github.com/alexey-goloburdin/dotfiles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Simple (Node.js LTS, Gulp, rimraf, NCU): | |
| sudo apt-add-repository -y ppa:brightbox/ruby-ng; sudo apt-get update; sudo apt-get -y install curl; curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -; sudo apt-get -y install nodejs; sudo npm i -g gulp rimraf npm-check-updates bower; sudo chown -R $USER:$(id -gn $USER) /home/$USER/.config | |
| 2. Advanced (Node.js LTS, Gulp, rimraf, NCU, Ruby, Jekyll, Jekyll paginate) | |
| sudo apt-add-repository -y ppa:brightbox/ruby-ng; sudo apt-get update; sudo apt-get -y install curl ruby2.5 ruby2.5-dev gcc make g++ libffi-dev; curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -; sudo apt-get -y install nodejs; sudo gem i jekyll; sudo gem i jekyll-paginate-v2; sudo npm i -g gulp rimraf npm-check-updates bower; sudo chown -R $USER:$(id -gn $USER) /home/$USER/.config | |
| 3. Длинна командной строки (добавить PROMPT_DIRTRIM=3 в конец и сохранить файл): | |
| sudo nano ~/.bashrc | |
| PROMPT_DIRTRIM=3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ssl | |
| from socks import create_connection | |
| from socks import PROXY_TYPE_SOCKS4 | |
| from socks import PROXY_TYPE_SOCKS5 | |
| from socks import PROXY_TYPE_HTTP | |
| from imaplib import IMAP4 | |
| from imaplib import IMAP4_PORT | |
| from imaplib import IMAP4_SSL_PORT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {# find the children (subpages) of a parent page, in this case the "about" page #} | |
| <ul> | |
| {% for p in page.find('/about').children if p != page %} | |
| <li><a href="{{p.url}}">{{ p.title }}</a></li> | |
| {% endfor %} | |
| </ul> | |
| {# show all the pages with a certain category, in this case "cars" #} | |
| <h2>All the CAR posts</h2> | |
| <ul> |