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
| # coding: utf-8 | |
| from itertools import cycle | |
| from collections import deque | |
| from collections import Counter | |
| from nltk import bigrams | |
| from nltk.tokenize import word_tokenize |
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
| http://samlib.ru/h/hia/ - Хорт Игорь Анатольевич | |
| Дэвид Герролд. Война против Кторра | |
| Сергей Лукьяненко. Черновик | |
| Сергей Лукьяненко. Чистовик | |
| Сергей Лукьяненко. Глубина | |
| Гарри Гаррисон. Крыса из нержавеющей стали |
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 os | |
| import time | |
| import subprocess as sp | |
| algos = [ | |
| "bitcoin", | |
| "blake", | |
| "blakecoin", | |
| "c11", | |
| "deep", |
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
| # !/usr/bin/env python3 | |
| # coding: utf-8 | |
| """ | |
| CRYPTOWATCHDOG 3.0 - watchdog for NVIDIA GPU based on NVIDIA-SMI. | |
| Created by TORQUEMADA163 (a.nakhimov@gmail.com) for forum | |
| https://forum.bits.media | |
| 2017 | |
| """ |
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
| sudo apt-get purge nvidia-* | |
| sudo apt-get purge pidgin* | |
| sudo apt-get purge cups* | |
| sudo apt-get purge bluez | |
| sudo apt autoremove | |
| sudo apt-get update | |
| sudo apt-get install -y aptitude apt-transport-https | |
| sudo add-apt-repository ppa:graphics-drivers/ppa -y |
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
| from ctypes import * | |
| import typing as t | |
| import types | |
| import array | |
| import collections as c | |
| try: | |
| from pympler.asizeof import asizeof | |
| except ImportError: |
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
| Хорошо и очень хорошо: | |
| - За пригоршню долларов | |
| - На несколько долларов больше | |
| - Хороший, плохой, злой | |
| - Двухсотлетний человек | |
| - День Сурка | |
| - Прежде чем я усну (День Сурка у бабы) | |
| - Сапожник (Сендлер) | |
| - Экипаж (tags: вещества, негр, самолет) | |
| - Игра Эндера |
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
| # coding: utf-8 | |
| import time | |
| import itertools | |
| import datetime | |
| try: | |
| import elasticsearch | |
| except ImportError: | |
| import pip | |
| pip.main(['install', '--user', 'elasticsearch']) |
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
| $: apt install libssl-dev libperl-dev | |
| $: | |
| $: bash <(curl -f -L -sS https://ngxpagespeed.com/install) --nginx-version latest -b /opt | |
| ... | |
| --user=www-data \ | |
| --group=www-data \ | |
| --sbin-path=/usr/sbin/nginx \ | |
| --pid-path=/var/run/nginx.pid \ | |
| --prefix=/etc/nginx \ |
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
| #!/usr/bin/env python3 | |
| import os | |
| import sys | |
| import stat | |
| stdin = None | |
| mode = os.fstat(0).st_mode | |
| if not any((stat.S_ISFIFO(mode), stat.S_ISREG(mode))): | |
| print("Error: Is not piped") |
NewerOlder