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
{-# LANGUAGE ScopedTypeVariables #-} | |
import Data.Bits | |
import System.Environment | |
import Data.Char (ord, chr) | |
import Math.NumberTheory.GCD (extendedGCD) | |
import System.Exit | |
p = 0x87c296ed480f9ab17885decd31197d617779c0dac70c3234996e1 | |
q = 0x4fa84812157119acc8ecca98c404b2e5ee24ce18f60ea818091895 | |
e = 0x10001 |
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
{ | |
"experience" : { | |
"id" : "between1And3", | |
"name" : "От 1 года до 3 лет" | |
}, | |
"schedule" : { | |
"name" : "Полный день", | |
"id" : "fullDay" | |
}, | |
"key_skills" : [], |
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 nltk | |
import re | |
import sys | |
import json | |
import string | |
from nltk.corpus import stopwords | |
import pymorphy2 | |
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 python | |
# -*- coding: utf-8 -*- | |
# make certificate request request as CMC, wrapped to signed CMS | |
import sys | |
import os.path | |
PWD = os.path.dirname(__file__) | |
sys.path.append(os.path.abspath(os.path.join(PWD, '../..'))) | |
sys.path.append(os.path.abspath(os.path.join(PWD, '../../libs'))) | |
import argparse |
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
def decor(fn): | |
class Wrap(object): | |
def __init__(self, fn): | |
self.fn = fn | |
def __get__(self, cls_self, cls): | |
def wrap(*a, **kw): | |
attr = getattr(cls_self, 'attr', None) | |
print 'call {}.a(), attr is {}'.format(repr(cls_self), attr) | |
return self.fn(cls_self, *a, **kw) |
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
#!/bin/bash | |
# | |
# dvca | |
# | |
# chkconfig: - 58 74 | |
# description: DVCA Fcgi . | |
### BEGIN INIT INFO | |
# Provides: dvca | |
# Required-Start: $network $local_fs $remote_fs rabbitmq-server |
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
class Main extends React.Component<any, any> { | |
render() { | |
const { pathname } = this.props.location; | |
return ( | |
<div> | |
Nav <br/> | |
<Link to={'/settings'}>Settings</Link> <br/> |
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
# rfc 5280, Certiricate extensions: classes, encoders&decoders | |
# todo: implement more extensions | |
import re | |
import socket | |
import cmclib.CMCspecs as asn | |
from cmclib.dn import Name | |
from cmclib.dn import RDName | |
from cmclib.oids import id_ce_authorityKeyIdentifier | |
from cmclib.oids import id_ce_basicConstraints |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Анимированное подчеркивание при наведении курсора"> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
body { | |
font-family: -apple-system, "San Francisco", "Helvetica Neue", "Lucida Grande"; |
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
# habraproxy.py — это простейший http-прокси-сервер, запускаемый локально (порт на ваше | |
# усмотрение), который показывает содержимое страниц Хабра. С одним исключением: после | |
# каждого слова из шести букв должен стоять значок «™». Примерно так: | |
# | |
# http://habrahabr.ru/company/yandex/blog/258673/ | |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
# Сейчас на фоне уязвимости Logjam все в индустрии в очередной раз обсуждают проблемы и | |
# особенности TLS. Я хочу воспользоваться этой возможностью, чтобы поговорить об одной из | |
# них, а именно — о настройке ciphersiutes. | |
# |