I hereby claim:
- I am toejough on github.
- I am toejough (https://keybase.io/toejough) on keybase.
- I have a public key ASCRum1gWhl9_pbyevVgZK5KgOi9iqecL5D1xChANdVzVgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import asyncio | |
| import functools | |
| # [ Helpers ] | |
| async def run_blocking(func, *args, **kwargs): | |
| partial = functools.partial(func, *args, **kwargs) | |
| loop = asyncio.get_event_loop() | |
| await loop.run_in_executor(None, partial) |
This gist has been converted to a full repo (for collaboration!) here
| // clone a basic object (no functions or recursion) | |
| // also handles 'undefined' and 'null' | |
| function clone_obj(obj) { | |
| if (obj === undefined || obj === null) { | |
| return obj; | |
| } | |
| return JSON.parse(JSON.stringify(obj)); | |
| } |
A how-to for ssh-agent forwarding via Paramiko. Specifically, I used Paramiko v1.15.2 in this example.
Paramiko's docs do not document the API required to do ssh-agent forwarding. I ended up finding out how by reading pull requests for ssh-agent forwarding features in frameworks that use Paramiko under the covers, like fabric and ansible.
Besides attempting to document this process here, I've opened a bug with Paramiko to document this API in their official docs.