Skip to content

Instantly share code, notes, and snippets.

[Как варить гречку]
http://www.timeboil.ru/cereals/buckwheat/
1. Перед варкой гречку необходимо перебрать; важно, чтобы в готовую гречку не попали камушки и растительный мусор.
2. Промыть гречку под холодной водой и слить воду.
3. Разогреть сковородку, высыпать гречку, пару минут прогреть гречку на сковородке (без масла) на тихом огне, - тогда после варки она будет рассыпчатой.
4. Налить в кастрюлю холодной воды - в 2,5 раза больше, чем гречки: на 1 стакан гречки 2,5 стакана воды. Посолить воду.
5. Всыпать гречку в воду.
6. Поставить кастрюлю на тихий огонь, довести до кипения, добавить 1 чайную ложку сливочного масла.
7. Гречку варить на медленном огне, под крышкой, 20 минут.
8. Подавать гречку на гарнир со сливочным маслом и зеленью.
@kostyll
kostyll / Makefile
Last active February 16, 2016 15:36
cjsx_twbs_react_notes.md
DIRS = . static/js/base64.coffee static
COFFEE_SCRIPTS = $(basename $(foreach dir,$(DIRS),$(wildcard $(dir)/*.coffee)))
#GEN_POPUPS := $(basename $(shell find data/ ! -name "html.py" -name "*.py"))
CJXS_SCRIPTS = $(basename $(foreach dir,$(DIRS),$(wildcard $(dir)/*.cjsx)))
PY_EXT=.py
PYTHON=python
CHDIR_SHELL := $(SHELL)
define chdir
$(eval _D=$(firstword $(1) $(@D)))
@kostyll
kostyll / Makefile
Last active December 27, 2016 10:11
Makefile
.PHONY: all
# https://gist.github.com/kostyll/e1bba8506c2cb08352fc
# install git-crypt from https://github.com/AGWA/git-crypt.git
REQFILE=requirements.txt
TESTDUMMY=test/test_dummy.py
GITATTRIBUTES=.gitattributes
GITIGNORE=.gitignore
KEY=key.bin
@kostyll
kostyll / singleton.py
Created March 30, 2016 09:24
singleton
class Singleton(type):
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]
class Notifier(object):
__metaclass__ = Singleton
@kostyll
kostyll / gist:8efcede1375e7021044ba209f32a0b00
Created April 26, 2016 14:09 — forked from claudijd/gist:6ce45deabb154ceb7efa
Good one-liner for OpenSSL s_server testing
openssl req -nodes -x509 -newkey rsa:2048 -keyout server.pem -out server.pem -days 1 && openssl s_server -tls1 -www -accept 1337
https://linuxcenter.kz/page/ustanavlivaem-ms-directx9x-v-wine
user$ wget http://winetricks.org/winetricks
user$ sh winetricks d3dx9
from __future__ import with_statement # for 2.5
# SOURCE : http://stackoverflow.com/questions/2463770/python-in-memory-zip-library/19722365#19722365
import zipfile
try:
from cStringIO import StringIO
except ImportError:
from io import BytesIO as StringIO
@kostyll
kostyll / walk.py
Created May 7, 2016 16:50
walk.py
for root, dirnames, filenames in os.walk('btctradeapicomua'):
for filename in fnmatch.filter(filenames, "*.py"):
filepath = os.path.join(root, filename)
print filepath
"""
btctradeapicomua/__init__.py
btctradeapicomua/docs/source/conf.py
btctradeapicomua/workers/collector.py
btctradeapicomua/workers/__init__.py
btctradeapicomua/examples/collector.py
Log output
The area below shows the logging calls in your code. These correspond to a single row within the CloudWatch log group corresponding to this Lambda function. Click here to view the CloudWatch log group.
START RequestId: 2644abca-b08d-11e5-a8cb-e1cccca020f0 Version: $LATEST
Unable to import module 'lambda_function': No module named lambda_function
END RequestId: 2644abca-b08d-11e5-a8cb-e1cccca020f0
REPORT RequestId: 2644abca-b08d-11e5-a8cb-e1cccca020f0 Duration: 72.41 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 8 MB
2017 netcat eth0
2018 netstat
2019 netstat | grep openss
2020 netstat | grep open
2021 ls
2022 wine openssl.exe req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes
2023 wine openssl.exe s_server -key key.pem -cert cert.pem -accept 44330 -www
2024 echo hello | wine openssl.exe s_server -key key.pem -cert cert.pem -accept 44330 -www
2025 echo hello | wine openssl.exe s_server -key key.pem -cert cert.pem -ciphers RC4-SHA -accept 44330 -www
2026 echo hello | wine openssl.exe s_server -key key.pem -cert cert.pem -ciphers RC4-SHA -accept 44330 -www