Skip to content

Instantly share code, notes, and snippets.

View adiroiban's full-sized avatar
🇺🇦
Slava Ukraini!

Adi Roiban adiroiban

🇺🇦
Slava Ukraini!
  • VGR, La Gomera
  • 13:45 (UTC +01:00)
View GitHub Profile
@adiroiban
adiroiban / cms.h
Last active November 12, 2015 19:42
SUSE 11 OpenSSL 0.9.8j-fips 07 Jan 2009
/* crypto/cms/cms.h */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
/* ====================================================================
* Copyright (c) 2008 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@adiroiban
adiroiban / tsf-nov-1-2015.rst
Last active November 16, 2015 08:22
November 2015 - week 1 and 2 - TSF Sponsored Development

November 2015 week 1 and 2 - TSF Sponsored Development

This is my report for the work done in the first 2 weeks of November as part of the 2015 Twisted Maintainer Fellowship program.

Imoprtant changes made in these 2 weeks:

  • NPN and ALPL support for the TLS transport.
  • Conch SSH client with diffie-hellman-group-exchange-sha256 support and support for latest release of OpenSSH server.
  • Prepare twisted.web for HTTP/2 supoprt.
@adiroiban
adiroiban / test.py
Last active November 21, 2015 12:28
LoopingCall changes
class ChevahLoopingCall(object):
"""
Wrapper for looping call to keep a reference to current loop deferred.
"""
def __init__(self, callback):
self._context = LoopingCall(self._loopedCall)
self._callback = callback
self._ongoingDeferred = None
@adiroiban
adiroiban / plan.txt
Created November 29, 2015 15:46
Craig Rodrigues Git Migration Plan for Twisted
OK.
So based on what you have listed, I would say that most of the work will be
working with Git post commit hooks.
I would say the plan should be something like this.
A.1 https://github.com/twisted/twisted will be the "repository of truth"
for Twisted.
-> Twisted releases will be done from GitHub
@adiroiban
adiroiban / Glyph's IRC feedback
Last active November 29, 2015 16:04
Twisted SVN to Git migration - Work Plan
11 Nov
(23:40:19) glyph: adiroiban: hey, so, regarding the git migration. You sent a proposal to the TSF but then you mentioned hawkowl had another proposal. I said to discuss amongst yourselves and submit a single proposal so I can organize an approval vote. Then you asked if there was any news :)
(23:40:40) glyph: adiroiban: The news is "please submit a final proposal for approval when you are done deciding which it is" :)
(23:40:48) adiroiban: ok
(23:41:08) glyph: adiroiban: I can guarantee the PLC is going to do exactly _zero_ work in helping you figure out what to do; it is hard enough for me to get them all to answer their email for a vote :)
(23:41:31) glyph: keturn: maybe you should feel a little bad about that, but since you are the _second_ most responsive member (and the _only_ one actually here) maybe don't feel too bad
(23:42:04) adiroiban: glyph: ok. no problem
(23:42:17) adiroiban: will get in touch with Amber
(23:42:43) adiroiban: I am not aware of receiving an email in which I am asked to
@adiroiban
adiroiban / tsf-nov-2-2015.rst
Created December 1, 2015 09:39
November 2015 week 3 and 4 - TSF Sponsored Development

November 2015 week 3 and 4 - TSF Sponsored Development

This is my report for the work done in the last 2 weeks of November as part of the 2015 Twisted Maintainer Fellowship program.

We continue to have a small waiting line for the review queue. In general the initial review response time was below 24 hours, and delayed mainly due to time zones.

Important changes made in these weeks:

with nested(
patch(
'chevah.server.commons.commands.copyfile',
),
patch(
'chevah.server.commons.commands.generate_ssh_key',
return_value=(0, 'message'),
),
patch.object(
local_filesystem,
@adiroiban
adiroiban / remote_proxy.yml
Created March 15, 2013 10:06
Idea of describing salt state for proxy minion
#
# Define remote system config as a pillar
#
gateway:
host: hostname
port: 22
protocol: ssh | telnet # uses scp/ssh or rcp/rsh
ssh_key: "/path/on/local/minion"
server_fingerpring: '34:32:a4:32:32:32:a4:32:a4'
@adiroiban
adiroiban / reuse_threadpool.py
Last active December 15, 2015 05:29
Example to write test using multiple deferred in the same test.
class TestDatabaseHandlerSQLite(ServerTestCase):
"""
Integration tests for the SQLite database log handler.
"""
def setUp(self):
super(TestDatabaseHandlerSQLite, self).setUp()
self.pool = DBConnectionPool('sqlite://:memory:')
self.handler = DatabaseHandler(self.pool, capacity=1)
self.handler._scheduler = Clock()
@adiroiban
adiroiban / .gitconfig
Created March 22, 2013 09:21
My .gitconfig
[user]
name = Adi Roiban
email = adi.roiban@chevah.com
[alias]
ae = !"~/.local/opt/Sublime\\ Text\\ 2/sublime_text" ~/.gitconfig
st = status -s
ci = commit -a
cis = commit
push = push --tags