Хелпер для петиции субтитров к фильмам
Письмо от поддержки
Добавляется ссылка в списке субтитров
- На kinopoisk.ru
| #!/bin/bash | |
| ### steps #### | |
| # verify the system has a cuda-capable gpu | |
| # download and install the nvidia cuda toolkit and cudnn | |
| # setup environmental variables | |
| # verify the installation | |
| ### | |
| ### to verify your gpu is cuda enable check |
| ! https://2ch.hk | |
| ||2ch.hk/banners/*.gif$image | |
| ! Drop any nocopy scripts | |
| ||*/nocopy*.js | |
| ! https://pikabu.ru | |
| ! Remove watermarks from images | |
| pikabu.ru##img[data-watermarked='1'] |
| #!/bin/bash | |
| # Usage | |
| # gen_cacert.sh cert /usr/share/ca-certificates/mozilla/ > cacert.pem | |
| # gen_cacert.sh cert example.com > cacert.pem | |
| # gen_cacert.sh cert /usr/share/ca-certificates/mozilla/ example.com > cacert.pem | |
| set -e | |
| function fetch_cert() { | |
| DOMAIN=$1 |
| function etag_resize (r) { | |
| function done (r2) { | |
| // Extract etag header | |
| var source_etag = r2.headersOut.etag | |
| // Pass variables from location | |
| var width = r.variables.width | |
| var height = r.variables.height | |
| var image_path = r.variables.image_path | |
| var convert_path = r.variables.convert_path || '/_ei/' | |
| // construct resize with cache url |
https://egghead.io/
https://habr.com/post/359192/ алгоритмы на js все
https://www.youtube.com/watch?v=j4_9BZezSUA event loop
https://fseby.wordpress.com/2016/02/25/практическая-вводная-в-монады-в-javascript/
https://habrahabr.ru/company/mailru/blog/327522/ (Функциональное программирование в JavaScript с практическими примерами)
https://habrahabr.ru/post/298134/ (FizzBuzz, или почему программисты не умеют программировать)
http://dmitrysoshnikov.com/ecmascript/javascript-the-core-2nd-edition-rus/ (всякое общее)
https://medium.com/@frontman/приведение-типов-в-js-9d6f1845ea96 (приведение типов и др. инфа)
https://ru.wikipedia.org/wiki/Шаблон_проектирования
Fix py.test issues apply patch
curl -s https://gist.githubusercontent.com/Apkawa/7ed7ddfecb8b40efafcc354a9330a188/raw/run.sh | bash -s - <path to pycharm installation>
As example
curl -s https://gist.githubusercontent.com/Apkawa/7ed7ddfecb8b40efafcc354a9330a188/raw/run.sh | bash -s - ~/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/171.3780.115
| #!/bin/sh | |
| CONF=/etc/openvpn/home/client-config/DEFAULT | |
| IP_URL=http://api.antizapret.info/group.php | |
| trap cleanup EXIT | |
| cleanup() { | |
| rm $NEW_CONF 2>/dev/null | |
| } |
| # coding: utf-8 | |
| from __future__ import unicode_literals | |
| from django.conf import settings | |
| from django.contrib.staticfiles.storage import StaticFilesStorage | |
| class RevisionStaticFilesStorage(StaticFilesStorage): | |
| def url(self, name): |
| CREATE EXTENSION pg_trgm; | |
| CREATE EXTENSION fuzzystrmatch; | |
| -- word index | |
| TRUNCATE TABLE "fuzzy_search_wordlist"; | |
| INSERT INTO "fuzzy_search_wordlist" (word, norm_word, stem_word) ( | |
| SELECT | |
| W.word, | |
| ( |