Libcurl requires openssl and zlib to be fully operationnal
- Step 1 : cross compile zlib
- Step 2 : cross compile openssl
- Step 3 : cross compile curl with zlib/openssl external link
Prerequisites :
| 1 - Create a *private* GitHub/Bitbucket or similar git repo. Here I assume the repo is: | |
| https://github.com/calkan/bash_history.git | |
| 2 - Create .history directory and initialize it for the repo: | |
| mkdir $HOME/.history | |
| cd $HOME/.history | |
| git init | |
| touch README.md |
| from sys import argv | |
| import os | |
| import re | |
| import subprocess | |
| import urllib.request | |
| import urllib.parse | |
| import youtube_dl | |
| from gi.repository import Notify |
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.
Ref: https://gist.github.com/vertexclique/9839383
Please use built-in Terminal.app (of Mac OS X) to type and rune the command, do not use another tool (like iTerm2).
Common step after enter run the patch command:
| #!/usr/bin/python | |
| # | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2014 Mike Shoup | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import posixpath | |
| try: | |
| from urlparse import urlsplit | |
| from urllib import unquote | |
| except ImportError: # Python 3 | |
| from urllib.parse import urlsplit, unquote |
| ssh user@remote gpg --export-secret-key KeyId | gpg --allow-secret-key-import --import |